diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-24 15:20:10 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-24 15:20:10 -0400 |
commit | 79e4ae93b56d50ac61873205f1b5142d2f5a87e9 (patch) | |
tree | dc801352611e3e9c396ba241c2f9fc98e4acaf88 | |
parent | 446d8b7f4cbf132252b972d744aa8be46d04d2bc (diff) | |
download | jquery-ui-79e4ae93b56d50ac61873205f1b5142d2f5a87e9.tar.gz jquery-ui-79e4ae93b56d50ac61873205f1b5142d2f5a87e9.zip |
Droppable: Fixed destroy method.
-rw-r--r-- | ui/jquery.ui.droppable.js | 9 |
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) { |