From f7c75d900f42a3479af0ed52d8f393e4028210e0 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sun, 24 Jan 2010 20:47:06 +0000 Subject: [PATCH] fixed #5094 - selectable: destroy method doesn't clean up selectees --- ui/jquery.ui.selectable.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index 4e19e5993..a14f720b7 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -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")