Skip to content

Commit ce51ede

Browse files
committed
Spinner: Fix time spinner demo; workaround for _super issue.
1 parent ba4fa2b commit ce51ede

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/jquery.ui.spinner.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,16 @@ $.widget('ui.spinner', {
285285
this.buttons.button("enable");
286286
}
287287
}
288-
this._super( "_setOption", key, value );
288+
// TODO see below
289+
//this._super( "_setOption", key, value );
290+
$.Widget.prototype._setOption.apply( this, arguments );
289291
},
290292

291293
_setOptions: function( options ) {
292-
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 );
293298
if ( "value" in options ) {
294299
this._format( this.options.value );
295300
}

0 commit comments

Comments
 (0)