We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc988e5 commit 93da790Copy full SHA for 93da790
1 file changed
src/directives/offClick.js
@@ -76,10 +76,10 @@ angular.module('offClick')
76
compile: (elem, attrs) => {
77
const fn = $parse(attrs.offClick);
78
79
- const elmId = id++;
80
- let removeWatcher;
81
-
82
return (scope, element) => {
+ const elmId = id++;
+ let removeWatcher;
+
83
const on = () => {
84
listeners[elmId] = {
85
elm: element[0],
@@ -109,4 +109,4 @@ angular.module('offClick')
109
};
110
}
111
112
-});
+});
0 commit comments