We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef168ad commit 0ea40b7Copy full SHA for 0ea40b7
ui/button.js
@@ -129,15 +129,14 @@ $.widget( "ui.button", {
129
}
130
131
this.icon.addClass( icon ).appendTo( this.element );
132
- return this;
133
},
134
135
_destroy: function() {
136
this.element
137
.removeClass( baseClasses + " ui-state-active " + typeClasses )
138
.removeAttr( "role" );
139
140
- if ( this.icon !== undefined ) {
+ if ( this.icon ) {
141
this.icon.remove();
142
143
if ( !this.hasTitle ) {
0 commit comments