mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectable: Fixed destroy method.
This commit is contained in:
parent
ae3d3515a7
commit
446d8b7f4c
8
ui/jquery.ui.selectable.js
vendored
8
ui/jquery.ui.selectable.js
vendored
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user