mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Change destroy to _destroy and remove calls to $.Widget.prototype.destroy in widgets with simple destroy methods.
This commit is contained in:
parent
ef1202dbe0
commit
56c4c6aca9
4
ui/jquery.ui.accordion.js
vendored
4
ui/jquery.ui.accordion.js
vendored
@ -140,7 +140,7 @@ $.widget( "ui.accordion", {
|
|||||||
this.element.removeClass( "ui-accordion-icons" );
|
this.element.removeClass( "ui-accordion-icons" );
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
var options = this.options;
|
var options = this.options;
|
||||||
|
|
||||||
this.element
|
this.element
|
||||||
@ -164,8 +164,6 @@ $.widget( "ui.accordion", {
|
|||||||
if ( options.heightStyle !== "content" ) {
|
if ( options.heightStyle !== "content" ) {
|
||||||
contents.css( "height", "" );
|
contents.css( "height", "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $.Widget.prototype.destroy.call( this );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
|
3
ui/jquery.ui.autocomplete.js
vendored
3
ui/jquery.ui.autocomplete.js
vendored
@ -214,7 +214,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
this.element
|
this.element
|
||||||
.removeClass( "ui-autocomplete-input" )
|
.removeClass( "ui-autocomplete-input" )
|
||||||
.removeAttr( "autocomplete" )
|
.removeAttr( "autocomplete" )
|
||||||
@ -222,7 +222,6 @@ $.widget( "ui.autocomplete", {
|
|||||||
.removeAttr( "aria-autocomplete" )
|
.removeAttr( "aria-autocomplete" )
|
||||||
.removeAttr( "aria-haspopup" );
|
.removeAttr( "aria-haspopup" );
|
||||||
this.menu.element.remove();
|
this.menu.element.remove();
|
||||||
$.Widget.prototype.destroy.call( this );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
|
4
ui/jquery.ui.button.js
vendored
4
ui/jquery.ui.button.js
vendored
@ -218,7 +218,7 @@ $.widget( "ui.button", {
|
|||||||
return this.buttonElement;
|
return this.buttonElement;
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
this.element
|
this.element
|
||||||
.removeClass( "ui-helper-hidden-accessible" );
|
.removeClass( "ui-helper-hidden-accessible" );
|
||||||
this.buttonElement
|
this.buttonElement
|
||||||
@ -230,8 +230,6 @@ $.widget( "ui.button", {
|
|||||||
if ( !this.hasTitle ) {
|
if ( !this.hasTitle ) {
|
||||||
this.buttonElement.removeAttr( "title" );
|
this.buttonElement.removeAttr( "title" );
|
||||||
}
|
}
|
||||||
|
|
||||||
$.Widget.prototype.destroy.call( this );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
|
5
ui/jquery.ui.dialog.js
vendored
5
ui/jquery.ui.dialog.js
vendored
@ -179,7 +179,7 @@ $.widget("ui.dialog", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if ( self.overlay ) {
|
if ( self.overlay ) {
|
||||||
@ -195,9 +195,6 @@ $.widget("ui.dialog", {
|
|||||||
if ( self.originalTitle ) {
|
if ( self.originalTitle ) {
|
||||||
self.element.attr( "title", self.originalTitle );
|
self.element.attr( "title", self.originalTitle );
|
||||||
}
|
}
|
||||||
|
|
||||||
$.Widget.prototype.destroy.call( this );
|
|
||||||
return self;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
widget: function() {
|
widget: function() {
|
||||||
|
4
ui/jquery.ui.menu.js
vendored
4
ui/jquery.ui.menu.js
vendored
@ -93,9 +93,7 @@ $.widget("ui.menu", {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
$.Widget.prototype.destroy.apply( this, arguments );
|
|
||||||
|
|
||||||
this.element
|
this.element
|
||||||
.removeClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )
|
.removeClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )
|
||||||
.removeAttr( "tabIndex" )
|
.removeAttr( "tabIndex" )
|
||||||
|
4
ui/jquery.ui.progressbar.js
vendored
4
ui/jquery.ui.progressbar.js
vendored
@ -38,7 +38,7 @@ $.widget( "ui.progressbar", {
|
|||||||
this._refreshValue();
|
this._refreshValue();
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
this.element
|
this.element
|
||||||
.removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
|
.removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
|
||||||
.removeAttr( "role" )
|
.removeAttr( "role" )
|
||||||
@ -47,8 +47,6 @@ $.widget( "ui.progressbar", {
|
|||||||
.removeAttr( "aria-valuenow" );
|
.removeAttr( "aria-valuenow" );
|
||||||
|
|
||||||
this.valueDiv.remove();
|
this.valueDiv.remove();
|
||||||
|
|
||||||
$.Widget.prototype.destroy.apply( this, arguments );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
value: function( newValue ) {
|
value: function( newValue ) {
|
||||||
|
3
ui/jquery.ui.tooltip.js
vendored
3
ui/jquery.ui.tooltip.js
vendored
@ -58,9 +58,8 @@ $.widget("ui.tooltip", {
|
|||||||
this.options.disabled = true;
|
this.options.disabled = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
_destroy: function() {
|
||||||
this.tooltip.remove();
|
this.tooltip.remove();
|
||||||
$.Widget.prototype.destroy.apply(this, arguments);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
widget: function() {
|
widget: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user