Skip to content

Commit a4488af

Browse files
ornicarscottgonzalez
authored andcommitted
Fix 'this.options is undefined' in sortable by using this instead of self
1 parent 0ad5ac7 commit a4488af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $.widget("ui.sortable", $.ui.mouse, {
8181
[ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" );
8282
} else {
8383
// Don't call widget base _setOption for disable as it adds ui-state-disabled class
84-
$.Widget.prototype._setOption.apply(self, arguments);
84+
$.Widget.prototype._setOption.apply(this, arguments);
8585
}
8686
},
8787

0 commit comments

Comments
 (0)