mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Improve destroy method
This commit is contained in:
parent
f667bb3c8d
commit
30d431b08a
12
ui/jquery.ui.spinner.js
vendored
12
ui/jquery.ui.spinner.js
vendored
@ -331,18 +331,12 @@ $.widget('ui.spinner', {
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
if ($.fn.mousewheel) {
|
||||
this.element.unmousewheel();
|
||||
}
|
||||
|
||||
this.element
|
||||
.removeClass('ui-spinner-input')
|
||||
.removeAttr('disabled')
|
||||
.removeAttr('autocomplete')
|
||||
.removeData('spinner')
|
||||
.unbind(".spinner");
|
||||
|
||||
this.uiSpinner.replaceWith(this.element);
|
||||
.removeAttr('autocomplete');
|
||||
$.Widget.prototype.destroy.call( this );
|
||||
this.uiSpinner.replaceWith(this.element);
|
||||
},
|
||||
|
||||
enable: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user