Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Droppable: Fixed destroy method.

  • Loading branch information...
commit 79e4ae93b56d50ac61873205f1b5142d2f5a87e9 1 parent 446d8b7
Scott González authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 ui/jquery.ui.droppable.js
9 ui/jquery.ui.droppable.js
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.