draggable: destroy method now properly removes the class ui-draggable (Fixes 3424)

This commit is contained in:
Paul Bakaus 2008-09-16 10:39:54 +00:00
parent b08ae847bf
commit fd40ff0fe0

View File

@ -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();
}
}));