Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 53556fa

Browse files
author
AngularUI (via TravisCI)
committed
Travis commit : build 194
1 parent 053a3a0 commit 53556fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sortable.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ angular.module('ui.sortable', [])
4444
scope.$watch(attrs.ngModel+'.length', function() {
4545
// Timeout to let ng-repeat modify the DOM
4646
$timeout(function() {
47-
element.sortable('refresh');
47+
if (!!element.data('ui-sortable')) {
48+
element.sortable('refresh');
49+
}
4850
});
4951
});
5052

sortable.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)