]> source.dussan.org Git - jquery-ui.git/commitdiff
Updated widgets to use new methods from $.Widget.
authorScott González <scott.gonzalez@gmail.com>
Sat, 15 Jan 2011 11:34:07 +0000 (06:34 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sat, 15 Jan 2011 11:34:07 +0000 (06:34 -0500)
ui/jquery.ui.accordion.js
ui/jquery.ui.autocomplete.js
ui/jquery.ui.button.js
ui/jquery.ui.dialog.js
ui/jquery.ui.progressbar.js
ui/jquery.ui.spinner.js

index c0e187c585362a9fb2e434d0a1f20ba8e0152ce8..b51597ea8c42412fe64dfe644473e8a1de9afcae 100644 (file)
@@ -173,7 +173,7 @@ $.widget( "ui.accordion", {
                        return;
                }
                
-               $.Widget.prototype._setOption.apply( this, arguments );
+               this._super( "_setOption", key, value );
                
                if ( key == "icons" ) {
                        this._destroyIcons();
index 0413306cebcae7fe2d536626f59406eb4861b938..fc213768acdfe72b7e75cfe2baca4b7b1438ae49 100644 (file)
@@ -225,7 +225,7 @@ $.widget( "ui.autocomplete", {
        },
 
        _setOption: function( key, value ) {
-               $.Widget.prototype._setOption.apply( this, arguments );
+               this._super( "_setOption", key, value );
                if ( key === "source" ) {
                        this._initSource();
                }
index 71d8cad128ed70e43117fe5d2b2d5072a90b1c41..d8ff25b25e7e00c5714c4299d012268367381979 100644 (file)
@@ -233,7 +233,7 @@ $.widget( "ui.button", {
        },
 
        _setOption: function( key, value ) {
-               $.Widget.prototype._setOption.apply( this, arguments );
+               this._super( "_setOption", key, value );
                if ( key === "disabled" ) {
                        if ( value ) {
                                this.element.attr( "disabled", true );
@@ -330,7 +330,7 @@ $.widget( "ui.buttonset", {
                        this.buttons.button( "option", key, value );
                }
 
-               $.Widget.prototype._setOption.apply( this, arguments );
+               this._super( "_setOption", key, value );
        },
        
        refresh: function() {
@@ -354,7 +354,7 @@ $.widget( "ui.buttonset", {
                        .end();
        },
 
-       destroy: function() {
+       _destroy: function() {
                this.element.removeClass( "ui-buttonset" );
                this.buttons
                        .map(function() {
@@ -363,8 +363,6 @@ $.widget( "ui.buttonset", {
                                .removeClass( "ui-corner-left ui-corner-right" )
                        .end()
                        .button( "destroy" );
-
-               $.Widget.prototype.destroy.call( this );
        }
 });
 
index 50c2bb905fb280a6dd7c350b53ef2135273c34ae..7b53f69156b59dbff0b456326f8205c18834e937 100644 (file)
@@ -600,7 +600,7 @@ $.widget("ui.dialog", {
                                break;
                }
 
-               $.Widget.prototype._setOption.apply( self, arguments );
+               this._super( "_setOption", key, value );
        },
 
        _size: function() {
index ade258bee17b30292a5dad58d7a0163026cc2c01..c42d8ef85e6508672fdac3d45742ebbac4f6053a 100644 (file)
@@ -67,7 +67,7 @@ $.widget( "ui.progressbar", {
                        }
                }
 
-               $.Widget.prototype._setOption.apply( this, arguments );
+               this._super( "_setOption", key, value );
        },
 
        _value: function() {
index 39a498359cc223910e1d517cbcd6c1aa88fb84f5..4a50b714439de3c2c6a3eb39f77c03725a7fb1f1 100644 (file)
@@ -283,11 +283,11 @@ $.widget('ui.spinner', {
                                this.buttons.button("enable");
                        }
                }
-               $.Widget.prototype._setOption.call( this, key, value );
+               this._super( "_setOption", key, value );
        },
        
        _setOptions: function( options ) {
-               $.Widget.prototype._setOptions.call( this, options );
+               this._super( "_setOptions", options );
                if ( "value" in options ) {
                        this._format( this.options.value );
                }
@@ -325,7 +325,7 @@ $.widget('ui.spinner', {
                        .removeClass('ui-spinner-input')
                        .removeAttr('disabled')
                        .removeAttr('autocomplete');
-               $.Widget.prototype.destroy.call( this );
+               this._super( "destroy" );
                this.uiSpinner.replaceWith(this.element);
        },