mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fix 'this.options is undefined' in sortable by using this instead of self
This commit is contained in:
parent
0ad5ac7382
commit
a4488aff7c
2
ui/jquery.ui.sortable.js
vendored
2
ui/jquery.ui.sortable.js
vendored
@ -81,7 +81,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|||||||
[ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" );
|
[ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" );
|
||||||
} else {
|
} else {
|
||||||
// Don't call widget base _setOption for disable as it adds ui-state-disabled class
|
// Don't call widget base _setOption for disable as it adds ui-state-disabled class
|
||||||
$.Widget.prototype._setOption.apply(self, arguments);
|
$.Widget.prototype._setOption.apply(this, arguments);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user