Skip to content

Commit

Permalink
Update angular-help-overlay.js
Browse files Browse the repository at this point in the history
try to fix event handler
  • Loading branch information
jeffthompson1971 authored Jul 10, 2017
1 parent 09eed6c commit 1cef686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/angular-help-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ angular.module('angularHelpOverlay', []).directive('helpOverlay', ['$document',
},
link: function (scope, element, attrs) {

$document.on('chardinJs:start', function (event) {
$(document).on('chardinJs:start', function (event) {
if (angular.isFunction(scope.overlayStart)) {
scope.overlayStart(event);
}
Expand All @@ -24,7 +24,7 @@ angular.module('angularHelpOverlay', []).directive('helpOverlay', ['$document',
}
});

$document.on('chardinJs:stop', function (event) {
$(document).on('chardinJs:stop', function (event) {
if (angular.isFunction(scope.overlayStop)) {
scope.overlayStop(event);
}
Expand All @@ -50,4 +50,4 @@ angular.module('angularHelpOverlay', []).directive('helpOverlay', ['$document',
});
}
};
}]);
}]);

0 comments on commit 1cef686

Please sign in to comment.