We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4fa2b commit ce51edeCopy full SHA for ce51ede
ui/jquery.ui.spinner.js
@@ -285,11 +285,16 @@ $.widget('ui.spinner', {
285
this.buttons.button("enable");
286
}
287
288
- this._super( "_setOption", key, value );
+ // TODO see below
289
+ //this._super( "_setOption", key, value );
290
+ $.Widget.prototype._setOption.apply( this, arguments );
291
},
292
293
_setOptions: function( options ) {
- this._super( "_setOptions", options );
294
+ // TODO _super doesn't handle inheritance with more then one subclass
295
+ // spinner subclass will have spinner as base, calling spinner._setOptions infinitely
296
+ //this._super( "_setOptions", options );
297
+ $.Widget.prototype._setOptions.apply( this, arguments );
298
if ( "value" in options ) {
299
this._format( this.options.value );
300
0 commit comments