diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-09 15:42:18 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-09 15:42:18 -0400 |
commit | 282554e900f09bba1da197a7d029b9a1a0f4899f (patch) | |
tree | 258556fa93c6ba79099b4103a89ae16dab7038ad | |
parent | d89b8f05091d1f34508c5bad1dbb6a74cf6492b4 (diff) | |
download | jquery-ui-282554e900f09bba1da197a7d029b9a1a0f4899f.tar.gz jquery-ui-282554e900f09bba1da197a7d029b9a1a0f4899f.zip |
Slider: Use base destroy method.
-rw-r--r-- | ui/jquery.ui.slider.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index cb806605c..accd3e189 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -194,7 +194,7 @@ $.widget( "ui.slider", $.ui.mouse, { this._animateOff = false; }, - destroy: function() { + _destroy: function() { this.handles.remove(); this.range.remove(); @@ -205,13 +205,9 @@ $.widget( "ui.slider", $.ui.mouse, { " ui-slider-disabled" + " ui-widget" + " ui-widget-content" + - " ui-corner-all" ) - .removeData( "slider" ) - .unbind( ".slider" ); + " ui-corner-all" ); this._mouseDestroy(); - - return this; }, _mouseCapture: function( event ) { |