Fix 'this.options is undefined' in sortable by using this instead of self

This commit is contained in:
ornicar 2010-05-05 16:43:03 +08:00 committed by Scott González
parent 0ad5ac7382
commit a4488aff7c

View File

@ -81,7 +81,7 @@ $.widget("ui.sortable", $.ui.mouse, {
[ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" );
} else {
// 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);
}
},