aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-24 15:20:10 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-24 15:20:10 -0400
commit79e4ae93b56d50ac61873205f1b5142d2f5a87e9 (patch)
treedc801352611e3e9c396ba241c2f9fc98e4acaf88
parent446d8b7f4cbf132252b972d744aa8be46d04d2bc (diff)
downloadjquery-ui-79e4ae93b56d50ac61873205f1b5142d2f5a87e9.tar.gz
jquery-ui-79e4ae93b56d50ac61873205f1b5142d2f5a87e9.zip
Droppable: Fixed destroy method.
-rw-r--r--ui/jquery.ui.droppable.js9
1 files changed, 2 insertions, 7 deletions
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) {