Slider: Improve destroy method

This commit is contained in:
jzaefferer 2010-10-26 12:53:34 +02:00
parent f667bb3c8d
commit 30d431b08a

View File

@ -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() {