From: Scott González Date: Thu, 24 May 2012 19:20:10 +0000 (-0400) Subject: Droppable: Fixed destroy method. X-Git-Tag: 1.9.0-beta.1~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79e4ae93b56d50ac61873205f1b5142d2f5a87e9;p=jquery-ui.git Droppable: Fixed destroy method. --- diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js index 47d3e38e9..e2ad221e1 100644 --- a/ui/jquery.ui.droppable.js +++ b/ui/jquery.ui.droppable.js @@ -47,18 +47,13 @@ $.widget("ui.droppable", { }, - destroy: function() { + _destroy: function() { var drop = $.ui.ddmanager.droppables[this.options.scope]; for ( var i = 0; i < drop.length; i++ ) if ( drop[i] == this ) drop.splice(i, 1); - this.element - .removeClass("ui-droppable ui-droppable-disabled") - .removeData("droppable") - .unbind(".droppable"); - - return this; + this.element.removeClass("ui-droppable ui-droppable-disabled"); }, _setOption: function(key, value) {