aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-15 06:34:07 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-15 06:34:07 -0500
commite0b52831fc41bc35d4bcbfa2e9a1dec76d0f0d6a (patch)
tree118b1cdbf5fe472206fb627c08f290f33928c371 /ui/jquery.ui.button.js
parent56c4c6aca992e1a441e6a2b498c911cf8d2221a4 (diff)
downloadjquery-ui-e0b52831fc41bc35d4bcbfa2e9a1dec76d0f0d6a.tar.gz
jquery-ui-e0b52831fc41bc35d4bcbfa2e9a1dec76d0f0d6a.zip
Updated widgets to use new methods from $.Widget.
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r--ui/jquery.ui.button.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 71d8cad12..d8ff25b25 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -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 );
}
});