Skip to content

Commit fa40acc

Browse files
committed
1 parent 9c009c6 commit fa40acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng1/directives/stateDirectives.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function $StateRefDirective($state, $timeout) {
159159
update();
160160

161161
if (!type.clickable) return;
162-
element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
162+
element.on("click", clickHook(element, $state, $timeout, type, function() { return def; }));
163163
}
164164
};
165165
}];
@@ -207,7 +207,7 @@ function $StateRefDynamicDirective($state, $timeout) {
207207
runStateRefLink(scope.$eval(watch));
208208

209209
if (!type.clickable) return;
210-
element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
210+
element.on("click", clickHook(element, $state, $timeout, type, function() { return def; }));
211211
}
212212
};
213213
}];

0 commit comments

Comments
 (0)