Skip to content
Permalink
Browse files

Draggable: Fixed destroy method.

  • Loading branch information...
scottgonzalez committed May 24, 2012
1 parent 86bd95c commit 4da1716cfd88ac9b4a8362f715c081c2f75bd316
Showing with 2 additions and 10 deletions.
  1. +2 −10 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) {

0 comments on commit 4da1716

Please sign in to comment.
You can’t perform that action at this time.