aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectable.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-01-24 20:47:06 +0000
committerRichard Worth <rdworth@gmail.com>2010-01-24 20:47:06 +0000
commitf7c75d900f42a3479af0ed52d8f393e4028210e0 (patch)
tree849ee28a9bd730a1255caf1b54422a7b7ac2cc8d /ui/jquery.ui.selectable.js
parent93ed6d5a0cab30d20a272c02528f6e829ef1e7d8 (diff)
downloadjquery-ui-f7c75d900f42a3479af0ed52d8f393e4028210e0.tar.gz
jquery-ui-f7c75d900f42a3479af0ed52d8f393e4028210e0.zip
fixed #5094 - selectable: destroy method doesn't clean up selectees
Diffstat (limited to 'ui/jquery.ui.selectable.js')
-rw-r--r--ui/jquery.ui.selectable.js3
1 files changed, 3 insertions, 0 deletions
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")