diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-07 20:37:06 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-07 20:37:06 +0100 |
commit | ce51edefb326aa1838c2c62406a2ee2c8efb648a (patch) | |
tree | 545f071d61485d3d8efca50dc55dabf6e3b342b8 | |
parent | ba4fa2b5ca43827f0deab5c241d0165208e8a4c8 (diff) | |
download | jquery-ui-ce51edefb326aa1838c2c62406a2ee2c8efb648a.tar.gz jquery-ui-ce51edefb326aa1838c2c62406a2ee2c8efb648a.zip |
Spinner: Fix time spinner demo; workaround for _super issue.
-rw-r--r-- | ui/jquery.ui.spinner.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 6d4d10d51..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 ); } |