mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
draggable: destroy method now properly removes the class ui-draggable (Fixes 3424)
This commit is contained in:
parent
b08ae847bf
commit
fd40ff0fe0
@ -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();
|
||||
}
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user