From 1cef68652e5e2727cddf39b856fd5aedd44a48b2 Mon Sep 17 00:00:00 2001 From: Jeff Thompson Date: Sun, 9 Jul 2017 22:55:20 -0500 Subject: [PATCH] Update angular-help-overlay.js try to fix event handler --- src/angular-help-overlay.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/angular-help-overlay.js b/src/angular-help-overlay.js index 7983555..f1cda98 100644 --- a/src/angular-help-overlay.js +++ b/src/angular-help-overlay.js @@ -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); } @@ -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); } @@ -50,4 +50,4 @@ angular.module('angularHelpOverlay', []).directive('helpOverlay', ['$document', }); } }; -}]); \ No newline at end of file +}]);