Fixed #2969 - .slider("destroy") throws error - 'this.handle.unwrap("a").mouse is not a function'

This commit is contained in:
Richard Worth 2008-06-07 00:47:33 +00:00
parent 0a279c243d
commit 1d5529afde

View File

@ -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) {