Skip to content

Commit ebeb23a

Browse files
Controlgroup: Prevent ui-group-theme-null class.
1 parent dd08abf commit ebeb23a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

js/widgets/controlgroup.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ $.widget( "mobile.controlgroup", $.mobile.widget, $.extend( {
5757
}
5858

5959
if ( o.theme !== undefined ) {
60-
$el
61-
.removeClass( "ui-group-theme-" + this.options.theme )
62-
.addClass( "ui-group-theme-" + o.theme );
60+
$el.removeClass( "ui-group-theme-" + this.options.theme );
61+
62+
if ( o.theme ) {
63+
$el.addClass( "ui-group-theme-" + o.theme );
64+
}
6365
}
6466

6567
if ( o.corners !== undefined ) {

0 commit comments

Comments
 (0)