fixed #5094 - selectable: destroy method doesn't clean up selectees

This commit is contained in:
Richard Worth 2010-01-24 20:47:06 +00:00
parent 93ed6d5a0c
commit f7c75d900f

View File

@ -62,6 +62,9 @@ $.widget("ui.selectable", $.ui.mouse, {
},
destroy: function() {
this.selectees
.removeClass("ui-selectee")
.removeData("selectable-item");
this.element
.removeClass("ui-selectable ui-selectable-disabled")
.removeData("selectable")