From 9eb3ef5b2d4894e75e5869041f0ab207a7ff36fd Mon Sep 17 00:00:00 2001 From: RubaXa Date: Fri, 1 Jan 2016 17:16:33 +0300 Subject: [PATCH] * on -> --- ng-sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ng-sortable.js b/ng-sortable.js index f1526b7..87bdc58 100644 --- a/ng-sortable.js +++ b/ng-sortable.js @@ -127,7 +127,7 @@ } function _destroy() { - scope.off('$destroy', _destroy); + scope.$off('$destroy', _destroy); angular.forEach(watchers, function (/** Function */unwatch) { unwatch(); @@ -190,7 +190,7 @@ })); }); - scope.on('$destroy', _destroy); + scope.$on('$destroy', _destroy); } }; }]);