Skip to content
Permalink
Browse files

Spinner: Fix time spinner demo; workaround for _super issue.

  • Loading branch information...
jzaefferer committed Feb 7, 2011
1 parent ba4fa2b commit ce51edefb326aa1838c2c62406a2ee2c8efb648a
Showing with 7 additions and 2 deletions.
  1. +7 −2 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 );
}

0 comments on commit ce51ede

Please sign in to comment.
You can’t perform that action at this time.