aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
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 );
}
});