mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Use base destroy method.
This commit is contained in:
parent
d89b8f0509
commit
282554e900
8
ui/jquery.ui.slider.js
vendored
8
ui/jquery.ui.slider.js
vendored
@ -194,7 +194,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|||||||
this._animateOff = false;
|
this._animateOff = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
this.handles.remove();
|
this.handles.remove();
|
||||||
this.range.remove();
|
this.range.remove();
|
||||||
|
|
||||||
@ -205,13 +205,9 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|||||||
" ui-slider-disabled" +
|
" ui-slider-disabled" +
|
||||||
" ui-widget" +
|
" ui-widget" +
|
||||||
" ui-widget-content" +
|
" ui-widget-content" +
|
||||||
" ui-corner-all" )
|
" ui-corner-all" );
|
||||||
.removeData( "slider" )
|
|
||||||
.unbind( ".slider" );
|
|
||||||
|
|
||||||
this._mouseDestroy();
|
this._mouseDestroy();
|
||||||
|
|
||||||
return this;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseCapture: function( event ) {
|
_mouseCapture: function( event ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user