Skip to content

Commit

Permalink
Fixed #2969 - .slider("destroy") throws error - 'this.handle.unwrap("…
Browse files Browse the repository at this point in the history
…a").mouse is not a function'
  • Loading branch information
rdworth committed Jun 7, 2008
1 parent 0a279c2 commit 1d5529a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/source/ui.slider.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 1d5529a

Please sign in to comment.