aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/source/ui.slider.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/source/ui.slider.js b/ui/source/ui.slider.js
index 22db4675a..51bc01c9d 100644
--- a/ui/source/ui.slider.js
+++ b/ui/source/ui.slider.js
@@ -44,8 +44,10 @@ $.widget("ui.slider", {
.removeData("slider")
.unbind(".slider");
this.handle
- .unwrap("a")
- .mouse("destroy");
+ .unwrap("a");
+ this.handle.each(function() {
+ $(this).data("mouse").mouseDestroy();
+ });
this.generated && this.generated.remove();
},
setData: function(key, value) {