Skip to content

Commit

Permalink
fix(StateService): remove jQuery deprecated feature
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Jul 28, 2016
1 parent 9c009c6 commit fa40acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng1/directives/stateDirectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function $StateRefDirective($state, $timeout) {
update();

if (!type.clickable) return;
element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
element.on("click", clickHook(element, $state, $timeout, type, function() { return def; }));
}
};
}];
Expand Down Expand Up @@ -207,7 +207,7 @@ function $StateRefDynamicDirective($state, $timeout) {
runStateRefLink(scope.$eval(watch));

if (!type.clickable) return;
element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
element.on("click", clickHook(element, $state, $timeout, type, function() { return def; }));
}
};
}];
Expand Down

0 comments on commit fa40acc

Please sign in to comment.