aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.slider.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-07 00:47:33 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-07 00:47:33 +0000
commit1d5529afdea9225076b5e99a62dff8fb3c64c229 (patch)
tree7ec0008d4b661935cbe82d993334a32ae4f8c556 /ui/source/ui.slider.js
parent0a279c243d9c38c14328a6eda44b2de9307712d9 (diff)
downloadjquery-ui-1d5529afdea9225076b5e99a62dff8fb3c64c229.tar.gz
jquery-ui-1d5529afdea9225076b5e99a62dff8fb3c64c229.zip
Fixed #2969 - .slider("destroy") throws error - 'this.handle.unwrap("a").mouse is not a function'
Diffstat (limited to 'ui/source/ui.slider.js')
-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) {