]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Fix time spinner demo; workaround for _super issue.
authorjzaefferer <joern.zaefferer@gmail.com>
Mon, 7 Feb 2011 19:37:06 +0000 (20:37 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Mon, 7 Feb 2011 19:37:06 +0000 (20:37 +0100)
ui/jquery.ui.spinner.js

index 6d4d10d5133e25c92ed73d07dfb218c8e8390e88..0219abb8bbf73e2137326e9d44b644facbf01381 100644 (file)
@@ -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 );
                }