Skip to content

Commit c122b64

Browse files
hyunsookGabriel Schulhof
authored and
Gabriel Schulhof
committed
Button: _setOptions: Fixed the bugs of _setOptions - The button widget doesn't set the iconpos option.
1 parent 4a5aeca commit c122b64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/widgets/forms/button.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ $.widget( "mobile.button", {
105105
outer.toggleClass( "ui-mini", options.mini );
106106
}
107107
if ( options.iconpos !== undefined ) {
108-
outer.removeClass( "ui-btn-icon-" + options.iconpos );
108+
outer
109+
.removeClass( "ui-btn-icon-" + this.options.iconpos )
110+
.addClass( "ui-btn-icon-" + options.iconpos );
109111
}
110112
if ( options.icon !== undefined ) {
111113
if ( !options.iconpos && ( !this.options.icon || !this.options.iconpos ) ) {

0 commit comments

Comments
 (0)