From: jzaefferer Date: Mon, 7 Feb 2011 19:37:06 +0000 (+0100) Subject: Spinner: Fix time spinner demo; workaround for _super issue. X-Git-Tag: 1.9m4~19^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ce51edefb326aa1838c2c62406a2ee2c8efb648a;p=jquery-ui.git Spinner: Fix time spinner demo; workaround for _super issue. --- 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 ); }