Selectable: Fixed destroy method.

This commit is contained in:
Scott González 2012-05-24 15:18:04 -04:00
parent ae3d3515a7
commit 446d8b7f4c

View File

@ -61,17 +61,13 @@ $.widget("ui.selectable", $.ui.mouse, {
this.helper = $("<div class='ui-selectable-helper'></div>"); this.helper = $("<div class='ui-selectable-helper'></div>");
}, },
destroy: function() { _destroy: function() {
this.selectees this.selectees
.removeClass("ui-selectee") .removeClass("ui-selectee")
.removeData("selectable-item"); .removeData("selectable-item");
this.element this.element
.removeClass("ui-selectable ui-selectable-disabled") .removeClass("ui-selectable ui-selectable-disabled");
.removeData("selectable")
.unbind(".selectable");
this._mouseDestroy(); this._mouseDestroy();
return this;
}, },
_mouseStart: function(event) { _mouseStart: function(event) {