Skip to content

Commit 0ea40b7

Browse files
committed
Button: pr comments
1 parent ef168ad commit 0ea40b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/button.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,14 @@ $.widget( "ui.button", {
129129
}
130130

131131
this.icon.addClass( icon ).appendTo( this.element );
132-
return this;
133132
},
134133

135134
_destroy: function() {
136135
this.element
137136
.removeClass( baseClasses + " ui-state-active " + typeClasses )
138137
.removeAttr( "role" );
139138

140-
if ( this.icon !== undefined ) {
139+
if ( this.icon ) {
141140
this.icon.remove();
142141
}
143142
if ( !this.hasTitle ) {

0 commit comments

Comments
 (0)