diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-24 15:10:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-24 15:10:49 -0400 |
commit | 4da1716cfd88ac9b4a8362f715c081c2f75bd316 (patch) | |
tree | a5e6679fa4df4de4318e0dfb3be82877a121945f | |
parent | 86bd95caf08fee31fdc5e4085deed8ac4a5d1c4e (diff) | |
download | jquery-ui-4da1716cfd88ac9b4a8362f715c081c2f75bd316.tar.gz jquery-ui-4da1716cfd88ac9b4a8362f715c081c2f75bd316.zip |
Draggable: Fixed destroy method.
-rw-r--r-- | ui/jquery.ui.draggable.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 5eb235642..1845f0891 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -55,17 +55,9 @@ $.widget("ui.draggable", $.ui.mouse, { }, - destroy: function() { - if(!this.element.data('draggable')) return; - this.element - .removeData("draggable") - .unbind(".draggable") - .removeClass("ui-draggable" - + " ui-draggable-dragging" - + " ui-draggable-disabled"); + _destroy: function() { + this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" ); this._mouseDestroy(); - - return this; }, _mouseCapture: function(event) { |