We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80258b3 commit 6629e86Copy full SHA for 6629e86
src/sortable.js
@@ -98,20 +98,6 @@ angular.module('ui.sortable', [])
98
}
99
100
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
115
callbacks.start = function(e, ui) {
116
if (opts['ui-floating'] === 'auto') {
117
// since the drag has started, the element will be
0 commit comments