mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed #2969 - .slider("destroy") throws error - 'this.handle.unwrap("a").mouse is not a function'
This commit is contained in:
parent
0a279c243d
commit
1d5529afde
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user