From b7749c4576af790cdd3620336dea69729cf35b57 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Thu, 12 Mar 2015 08:46:36 +0300 Subject: [PATCH] #298: + watchers of events --- ng-sortable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ng-sortable.js b/ng-sortable.js index 26df499..4d40d3d 100644 --- a/ng-sortable.js +++ b/ng-sortable.js @@ -160,7 +160,10 @@ }); if (ngSortable && !/{|}/.test(ngSortable)) { // todo: ugly - angular.forEach(['sort', 'disabled', 'draggable', 'handle', 'animation'], function (name) { + angular.forEach([ + 'sort', 'disabled', 'draggable', 'handle', 'animation', + 'onStart', 'onEnd', 'onAdd', 'onUpdate', 'onRemove', 'onSort' + ], function (name) { scope.$watch(ngSortable + '.' + name, function (value) { if (value !== void 0) { options[name] = value;