diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-02-08 09:22:45 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-02-08 09:22:45 -0500 |
commit | fba3349e38d9a9545f10e2ac1ae893053c9fc02a (patch) | |
tree | 14d753bdb5e7ad76840fe68a5f6b8441039085e5 /ui/jquery.ui.spinner.js | |
parent | 93916b4d01373a7be3d48c0d8fc3d66e904b5eeb (diff) | |
parent | ce51edefb326aa1838c2c62406a2ee2c8efb648a (diff) | |
download | jquery-ui-fba3349e38d9a9545f10e2ac1ae893053c9fc02a.tar.gz jquery-ui-fba3349e38d9a9545f10e2ac1ae893053c9fc02a.zip |
Merge branch 'master' of github.com:jquery/jquery-ui
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r-- | ui/jquery.ui.spinner.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index df61a7494..0219abb8b 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -285,11 +285,16 @@ $.widget('ui.spinner', { this.buttons.button("enable"); } } - this._super( "_setOption", key, value ); + // TODO see below + //this._super( "_setOption", key, value ); + $.Widget.prototype._setOption.apply( this, arguments ); }, _setOptions: function( options ) { - this._super( "_setOptions", options ); + // TODO _super doesn't handle inheritance with more then one subclass + // spinner subclass will have spinner as base, calling spinner._setOptions infinitely + //this._super( "_setOptions", options ); + $.Widget.prototype._setOptions.apply( this, arguments ); if ( "value" in options ) { this._format( this.options.value ); } @@ -312,7 +317,6 @@ $.widget('ui.spinner', { }, _format: function(num) { - var num = this.options.value; this.element.val( $.global && this.options.numberformat ? $.global.format(num, this.options.numberformat) : num ); }, |