]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: Use base destroy method.
authorScott González <scott.gonzalez@gmail.com>
Wed, 9 May 2012 19:42:18 +0000 (15:42 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 9 May 2012 19:42:18 +0000 (15:42 -0400)
ui/jquery.ui.slider.js

index cb806605cb7c0eb79856868208d788f3a585b7fa..accd3e1891fafeb122d59fcdf88659ac6868be08 100644 (file)
@@ -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 ) {