Skip to content

Commit 4da1716

Browse files
committed
Draggable: Fixed destroy method.
1 parent 86bd95c commit 4da1716

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ui/jquery.ui.draggable.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,9 @@ $.widget("ui.draggable", $.ui.mouse, {
5555

5656
},
5757

58-
destroy: function() {
59-
if(!this.element.data('draggable')) return;
60-
this.element
61-
.removeData("draggable")
62-
.unbind(".draggable")
63-
.removeClass("ui-draggable"
64-
+ " ui-draggable-dragging"
65-
+ " ui-draggable-disabled");
58+
_destroy: function() {
59+
this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" );
6660
this._mouseDestroy();
67-
68-
return this;
6961
},
7062

7163
_mouseCapture: function(event) {

0 commit comments

Comments
 (0)