From fa40acccad9fe45a2a3807d455ac7004c117dab9 Mon Sep 17 00:00:00 2001 From: vvakame Date: Thu, 28 Jul 2016 12:20:41 +0900 Subject: [PATCH] fix(StateService): remove jQuery deprecated feature https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryfnbind-is-deprecated --- src/ng1/directives/stateDirectives.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng1/directives/stateDirectives.ts b/src/ng1/directives/stateDirectives.ts index d84f0bda6..a37a9dec3 100644 --- a/src/ng1/directives/stateDirectives.ts +++ b/src/ng1/directives/stateDirectives.ts @@ -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; })); } }; }]; @@ -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; })); } }; }];