From a4488aff7c62f3e2db6f894b5f24cfd0adb8c6b7 Mon Sep 17 00:00:00 2001 From: ornicar Date: Wed, 5 May 2010 16:43:03 +0800 Subject: [PATCH] Fix 'this.options is undefined' in sortable by using this instead of self --- ui/jquery.ui.sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index 0fa3a1253..ba0b28393 100644 --- a/ui/jquery.ui.sortable.js +++ b/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); } }, -- 2.39.5