mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 00:17:59 -05:00
draggable: destroy method now properly removes the class ui-draggable (Fixes 3424)
This commit is contained in:
@@ -338,7 +338,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
||||
},
|
||||
destroy: function() {
|
||||
if(!this.element.data('draggable')) return;
|
||||
this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable-dragging ui-draggable-disabled');
|
||||
this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable ui-draggable-dragging ui-draggable-disabled');
|
||||
this._mouseDestroy();
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user