mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Fixed destroy method.
This commit is contained in:
parent
86bd95caf0
commit
4da1716cfd
12
ui/jquery.ui.draggable.js
vendored
12
ui/jquery.ui.draggable.js
vendored
@ -55,17 +55,9 @@ $.widget("ui.draggable", $.ui.mouse, {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
if(!this.element.data('draggable')) return;
|
this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" );
|
||||||
this.element
|
|
||||||
.removeData("draggable")
|
|
||||||
.unbind(".draggable")
|
|
||||||
.removeClass("ui-draggable"
|
|
||||||
+ " ui-draggable-dragging"
|
|
||||||
+ " ui-draggable-disabled");
|
|
||||||
this._mouseDestroy();
|
this._mouseDestroy();
|
||||||
|
|
||||||
return this;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseCapture: function(event) {
|
_mouseCapture: function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user