aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-26 12:53:34 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-26 12:53:34 +0200
commit30d431b08a86e92db817985c34f5f2bb7d0274c2 (patch)
treede03000d882f17929f8a5fab4642288b3774bec3 /ui
parentf667bb3c8d8c95a0c9493a68b1e6549ba43fcd89 (diff)
downloadjquery-ui-30d431b08a86e92db817985c34f5f2bb7d0274c2.tar.gz
jquery-ui-30d431b08a86e92db817985c34f5f2bb7d0274c2.zip
Slider: Improve destroy method
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.spinner.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index d671bdf48..29772904b 100644
--- a/ui/jquery.ui.spinner.js
+++ b/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() {