From 282554e900f09bba1da197a7d029b9a1a0f4899f Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 9 May 2012 15:42:18 -0400 Subject: Slider: Use base destroy method. --- ui/jquery.ui.slider.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ui/jquery.ui.slider.js') 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 ) { -- cgit v1.2.3