Skip to content
Permalink
Browse files

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

…self
  • Loading branch information
ornicar authored and scottgonzalez committed May 5, 2010
1 parent 0ad5ac7 commit a4488aff7c62f3e2db6f894b5f24cfd0adb8c6b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

This comment has been minimized.

Copy link

@andyshora andyshora replied May 12, 2010

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

@lachlanhardy

This comment has been minimized.

Copy link

@lachlanhardy lachlanhardy replied May 18, 2010

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

@scottgonzalez

This comment has been minimized.

Copy link
Member

@scottgonzalez scottgonzalez replied Dec 10, 2013

@ornicar Can you please sign our CLA?

@ornicar

This comment has been minimized.

Copy link
Contributor Author

@ornicar ornicar replied Dec 11, 2013

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

@scottgonzalez

This comment has been minimized.

Copy link
Member

@scottgonzalez scottgonzalez replied Dec 11, 2013

Thanks.

Please sign in to comment.
You can’t perform that action at this time.