Skip to content

Commit

Permalink
Merge pull request #2894 from vvakame/rm-jq-deprecated
Browse files Browse the repository at this point in the history
fix(StateService): remove jQuery deprecated feature
  • Loading branch information
christopherthielen authored Jul 28, 2016
2 parents 9c009c6 + fa40acc commit 0770fd8
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 0770fd8

Please sign in to comment.