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>");
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
_destroy: function() {
|
||||
this.selectees
|
||||
.removeClass("ui-selectee")
|
||||
.removeData("selectable-item");
|
||||
this.element
|
||||
.removeClass("ui-selectable ui-selectable-disabled")
|
||||
.removeData("selectable")
|
||||
.unbind(".selectable");
|
||||
.removeClass("ui-selectable ui-selectable-disabled");
|
||||
this._mouseDestroy();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
_mouseStart: function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user