]> source.dussan.org Git - jquery-ui.git/commitdiff
Droppable: Fixed destroy method.
authorScott González <scott.gonzalez@gmail.com>
Thu, 24 May 2012 19:20:10 +0000 (15:20 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 24 May 2012 19:20:10 +0000 (15:20 -0400)
ui/jquery.ui.droppable.js

index 47d3e38e9eb41f1fa47e6ecdab9b8c234437d0de..e2ad221e15cdaf991321dcae917080025e5ea989 100644 (file)
@@ -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) {