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

Commit cb660bc

Browse files
committed
fix: slight tweak to $observe code
1 parent 5ba4eb7 commit cb660bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ angular.module('ui.sortable', []).value('uiSortableConfig',{}).directive('uiSort
1111
var onReceive, onRemove, onStart, onStop, onUpdate, opts = {};
1212

1313
attrs.$observe('ui-sortable', function(){
14-
opts = angular.extend({}, uiSortableConfig, scope.$eval(attrs.uiSortable));
14+
angular.extend(opts, uiSortableConfig, scope.$eval(attrs.uiSortable));
1515
});
1616

1717
if (ngModel) {

0 commit comments

Comments
 (0)