Skip to content
Permalink
Browse files

Slider: Improve destroy method

  • Loading branch information...
jzaefferer committed Oct 26, 2010
1 parent f667bb3 commit 30d431b08a86e92db817985c34f5f2bb7d0274c2
Showing with 3 additions and 9 deletions.
  1. +3 −9 ui/jquery.ui.spinner.js
@@ -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() {

0 comments on commit 30d431b

Please sign in to comment.
You can’t perform that action at this time.