Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…self
  • Loading branch information...
commit a4488aff7c62f3e2db6f894b5f24cfd0adb8c6b7 1 parent 0ad5ac7
@ornicar ornicar authored scottgonzalez committed
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);
}
},

5 comments on commit a4488af

@andyshora

Excellent work guys, this bug had me for a while!

@lachlanhardy

Any chance we can get 1.8.2 released to include this soon?

@scottgonzalez

@ornicar Can you please sign our CLA?

@ornicar

Okay done... I grant jQuery the rights over these four characters :hammer:

@scottgonzalez

Thanks.

Please sign in to comment.
Something went wrong with that request. Please try again.