Skip to content

Commit 79e4ae9

Browse files
committed
Droppable: Fixed destroy method.
1 parent 446d8b7 commit 79e4ae9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ui/jquery.ui.droppable.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,13 @@ $.widget("ui.droppable", {
4747

4848
},
4949

50-
destroy: function() {
50+
_destroy: function() {
5151
var drop = $.ui.ddmanager.droppables[this.options.scope];
5252
for ( var i = 0; i < drop.length; i++ )
5353
if ( drop[i] == this )
5454
drop.splice(i, 1);
5555

56-
this.element
57-
.removeClass("ui-droppable ui-droppable-disabled")
58-
.removeData("droppable")
59-
.unbind(".droppable");
60-
61-
return this;
56+
this.element.removeClass("ui-droppable ui-droppable-disabled");
6257
},
6358

6459
_setOption: function(key, value) {

0 commit comments

Comments
 (0)