Skip to content
Permalink
Browse files

Droppable: Fixed destroy method.

  • Loading branch information
scottgonzalez committed May 24, 2012
1 parent 446d8b7 commit 79e4ae93b56d50ac61873205f1b5142d2f5a87e9
Showing with 2 additions and 7 deletions.
  1. +2 −7 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) {

0 comments on commit 79e4ae9

Please sign in to comment.
You can’t perform that action at this time.