aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.accordion.js2
-rw-r--r--ui/jquery.ui.autocomplete.js2
-rw-r--r--ui/jquery.ui.button.js8
-rw-r--r--ui/jquery.ui.dialog.js2
-rw-r--r--ui/jquery.ui.progressbar.js2
-rw-r--r--ui/jquery.ui.spinner.js6
6 files changed, 10 insertions, 12 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index c0e187c58..b51597ea8 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -173,7 +173,7 @@ $.widget( "ui.accordion", {
return;
}
- $.Widget.prototype._setOption.apply( this, arguments );
+ this._super( "_setOption", key, value );
if ( key == "icons" ) {
this._destroyIcons();
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 0413306ce..fc213768a 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -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();
}
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 );
}
});
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 50c2bb905..7b53f6915 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -600,7 +600,7 @@ $.widget("ui.dialog", {
break;
}
- $.Widget.prototype._setOption.apply( self, arguments );
+ this._super( "_setOption", key, value );
},
_size: function() {
diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js
index ade258bee..c42d8ef85 100644
--- a/ui/jquery.ui.progressbar.js
+++ b/ui/jquery.ui.progressbar.js
@@ -67,7 +67,7 @@ $.widget( "ui.progressbar", {
}
}
- $.Widget.prototype._setOption.apply( this, arguments );
+ this._super( "_setOption", key, value );
},
_value: function() {
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index 39a498359..4a50b7144 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -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);
},