Permalink
Browse files

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

…self
  • Loading branch information...
1 parent 0ad5ac7 commit a4488aff7c62f3e2db6f894b5f24cfd0adb8c6b7 @ornicar ornicar committed with scottgonzalez May 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.sortable.js
View
2 ui/jquery.ui.sortable.js
@@ -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);
}
},

0 comments on commit a4488af

Please sign in to comment.