From 1d5529afdea9225076b5e99a62dff8fb3c64c229 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sat, 7 Jun 2008 00:47:33 +0000 Subject: [PATCH] Fixed #2969 - .slider("destroy") throws error - 'this.handle.unwrap("a").mouse is not a function' --- ui/source/ui.slider.js | 6 ++++-- 1 file 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) { -- 2.39.5