From fd40ff0fe036cf4c38b93f0345505052f83dbb66 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 16 Sep 2008 10:39:54 +0000 Subject: [PATCH] draggable: destroy method now properly removes the class ui-draggable (Fixes 3424) --- ui/ui.draggable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index c0d7ad4ae..eb3d9a558 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -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(); } }));