mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Spinner: Fix time spinner demo; workaround for _super issue.
This commit is contained in:
parent
ba4fa2b5ca
commit
ce51edefb3
9
ui/jquery.ui.spinner.js
vendored
9
ui/jquery.ui.spinner.js
vendored
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user