Skip to content

Commit 6629e86

Browse files
committed
Workaround for very slow drag between lists in big tree structure
1 parent 80258b3 commit 6629e86

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/sortable.js

-14
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,6 @@ angular.module('ui.sortable', [])
9898
}
9999

100100
if (ngModel) {
101-
102-
// When we add or remove elements, we need the sortable to 'refresh'
103-
// so it can find the new/removed elements.
104-
scope.$watch('ngModel.length', function() {
105-
// Timeout to let ng-repeat modify the DOM
106-
$timeout(function() {
107-
// ensure that the jquery-ui-sortable widget instance
108-
// is still bound to the directive's element
109-
if (!!getSortableWidgetInstance(element)) {
110-
element.sortable('refresh');
111-
}
112-
}, 0, false);
113-
});
114-
115101
callbacks.start = function(e, ui) {
116102
if (opts['ui-floating'] === 'auto') {
117103
// since the drag has started, the element will be

0 commit comments

Comments
 (0)