diff options
author | Richard Worth <rdworth@gmail.com> | 2008-06-07 00:47:33 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-06-07 00:47:33 +0000 |
commit | 1d5529afdea9225076b5e99a62dff8fb3c64c229 (patch) | |
tree | 7ec0008d4b661935cbe82d993334a32ae4f8c556 | |
parent | 0a279c243d9c38c14328a6eda44b2de9307712d9 (diff) | |
download | jquery-ui-1d5529afdea9225076b5e99a62dff8fb3c64c229.tar.gz jquery-ui-1d5529afdea9225076b5e99a62dff8fb3c64c229.zip |
Fixed #2969 - .slider("destroy") throws error - 'this.handle.unwrap("a").mouse is not a function'
-rw-r--r-- | ui/source/ui.slider.js | 6 |
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) { |