mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Updated widgets to use new methods from $.Widget.
This commit is contained in:
parent
56c4c6aca9
commit
e0b52831fc
2
ui/jquery.ui.accordion.js
vendored
2
ui/jquery.ui.accordion.js
vendored
@ -173,7 +173,7 @@ $.widget( "ui.accordion", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.Widget.prototype._setOption.apply( this, arguments );
|
this._super( "_setOption", key, value );
|
||||||
|
|
||||||
if ( key == "icons" ) {
|
if ( key == "icons" ) {
|
||||||
this._destroyIcons();
|
this._destroyIcons();
|
||||||
|
2
ui/jquery.ui.autocomplete.js
vendored
2
ui/jquery.ui.autocomplete.js
vendored
@ -225,7 +225,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
$.Widget.prototype._setOption.apply( this, arguments );
|
this._super( "_setOption", key, value );
|
||||||
if ( key === "source" ) {
|
if ( key === "source" ) {
|
||||||
this._initSource();
|
this._initSource();
|
||||||
}
|
}
|
||||||
|
8
ui/jquery.ui.button.js
vendored
8
ui/jquery.ui.button.js
vendored
@ -233,7 +233,7 @@ $.widget( "ui.button", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
$.Widget.prototype._setOption.apply( this, arguments );
|
this._super( "_setOption", key, value );
|
||||||
if ( key === "disabled" ) {
|
if ( key === "disabled" ) {
|
||||||
if ( value ) {
|
if ( value ) {
|
||||||
this.element.attr( "disabled", true );
|
this.element.attr( "disabled", true );
|
||||||
@ -330,7 +330,7 @@ $.widget( "ui.buttonset", {
|
|||||||
this.buttons.button( "option", key, value );
|
this.buttons.button( "option", key, value );
|
||||||
}
|
}
|
||||||
|
|
||||||
$.Widget.prototype._setOption.apply( this, arguments );
|
this._super( "_setOption", key, value );
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh: function() {
|
refresh: function() {
|
||||||
@ -354,7 +354,7 @@ $.widget( "ui.buttonset", {
|
|||||||
.end();
|
.end();
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
this.element.removeClass( "ui-buttonset" );
|
this.element.removeClass( "ui-buttonset" );
|
||||||
this.buttons
|
this.buttons
|
||||||
.map(function() {
|
.map(function() {
|
||||||
@ -363,8 +363,6 @@ $.widget( "ui.buttonset", {
|
|||||||
.removeClass( "ui-corner-left ui-corner-right" )
|
.removeClass( "ui-corner-left ui-corner-right" )
|
||||||
.end()
|
.end()
|
||||||
.button( "destroy" );
|
.button( "destroy" );
|
||||||
|
|
||||||
$.Widget.prototype.destroy.call( this );
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@ -600,7 +600,7 @@ $.widget("ui.dialog", {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.Widget.prototype._setOption.apply( self, arguments );
|
this._super( "_setOption", key, value );
|
||||||
},
|
},
|
||||||
|
|
||||||
_size: function() {
|
_size: function() {
|
||||||
|
2
ui/jquery.ui.progressbar.js
vendored
2
ui/jquery.ui.progressbar.js
vendored
@ -67,7 +67,7 @@ $.widget( "ui.progressbar", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$.Widget.prototype._setOption.apply( this, arguments );
|
this._super( "_setOption", key, value );
|
||||||
},
|
},
|
||||||
|
|
||||||
_value: function() {
|
_value: function() {
|
||||||
|
6
ui/jquery.ui.spinner.js
vendored
6
ui/jquery.ui.spinner.js
vendored
@ -283,11 +283,11 @@ $.widget('ui.spinner', {
|
|||||||
this.buttons.button("enable");
|
this.buttons.button("enable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.Widget.prototype._setOption.call( this, key, value );
|
this._super( "_setOption", key, value );
|
||||||
},
|
},
|
||||||
|
|
||||||
_setOptions: function( options ) {
|
_setOptions: function( options ) {
|
||||||
$.Widget.prototype._setOptions.call( this, options );
|
this._super( "_setOptions", options );
|
||||||
if ( "value" in options ) {
|
if ( "value" in options ) {
|
||||||
this._format( this.options.value );
|
this._format( this.options.value );
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ $.widget('ui.spinner', {
|
|||||||
.removeClass('ui-spinner-input')
|
.removeClass('ui-spinner-input')
|
||||||
.removeAttr('disabled')
|
.removeAttr('disabled')
|
||||||
.removeAttr('autocomplete');
|
.removeAttr('autocomplete');
|
||||||
$.Widget.prototype.destroy.call( this );
|
this._super( "destroy" );
|
||||||
this.uiSpinner.replaceWith(this.element);
|
this.uiSpinner.replaceWith(this.element);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user