We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6b9bd6 commit 36cceb5Copy full SHA for 36cceb5
src/sortable.js
@@ -42,6 +42,8 @@ angular.module('ui.sortable', [])
42
scope.$watch(attrs.ngModel+'.length', function() {
43
// Timeout to let ng-repeat modify the DOM
44
$timeout(function() {
45
+ // ensure that the jquery-ui-sortable widget instance
46
+ // is still bound to the directive's element
47
if (!!element.data('ui-sortable')) {
48
element.sortable('refresh');
49
}
@@ -174,6 +176,8 @@ angular.module('ui.sortable', [])
174
176
};
175
177
178
scope.$watch(attrs.uiSortable, function(newVal /*, oldVal*/) {
179
180
181
182
angular.forEach(newVal, function(value, key) {
183
if(callbacks[key]) {
0 commit comments