Skip to content
Permalink
Browse files

Fixed failing .slider("destroy") on empty element. "$(this).data("mou…

…se") is undefined"
  • Loading branch information...
rdworth committed Nov 12, 2008
1 parent e47820f commit e1fab2ce61aca0f3cdd40151a24dc8aba760f4ec
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/ui.slider.js
@@ -46,7 +46,8 @@ $.widget("ui.slider", {
this.handle
.unwrap("a");
this.handle.each(function() {
$(this).data("mouse")._mouseDestroy();
var mouse = $(this).data("mouse");
mouse && mouse._mouseDestroy();
});
}

0 comments on commit e1fab2c

Please sign in to comment.
You can’t perform that action at this time.