Browse Source

#298: + watchers of events

pull/309/head
RubaXa 10 years ago
parent
commit
b7749c4576
  1. 5
      ng-sortable.js

5
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;

Loading…
Cancel
Save