From 32f2f43c08207d14cff82965fcdc455b0f4ff5fe Mon Sep 17 00:00:00 2001 From: RubaXa Date: Wed, 17 Dec 2014 22:32:51 +0300 Subject: [PATCH] - upd --- ng-sortable.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ng-sortable.js b/ng-sortable.js index 3d3175b..12b9388 100644 --- a/ng-sortable.js +++ b/ng-sortable.js @@ -3,7 +3,7 @@ * @licence MIT */ angular.module('ng-sortable', []) - .constant('$version', '0.3.1') + .constant('$version', '0.3.2') .directive('ngSortable', ['$parse', function ($parse) { 'use strict'; @@ -28,9 +28,6 @@ angular.module('ng-sortable', []) }, items: function () { return itemsExpr(scope); - }, - upd: function () { - itemsExpr.assign(scope, this.items()); } }; } @@ -66,14 +63,12 @@ angular.module('ng-sortable', []) removed = prevItems.splice(oldIndex, 1)[0]; items.splice(newIndex, 0, removed); - prevSource.upd(); evt.from.appendChild(evt.item); // revert element } else { items.splice(newIndex, 0, items.splice(oldIndex, 1)[0]); } - source.upd(); scope.$apply(); }