Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 4ba4ea1

Browse files
author
Gabriel Schulhof
committed
[controlgroup] Do not assume checkboxradio widget is defined
1 parent cc0ab78 commit 4ba4ea1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/widgets/controlgroup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ define( [ "jquery",
8484

8585
_refresh: function( create ) {
8686
var els = this.element.find( ".ui-btn" ).not( ".ui-slider-handle" );
87-
this.element.find( ":mobile-checkboxradio" ).checkboxradio( "refresh" );
87+
if ( $.mobile.checkboxradio ) {
88+
this.element.find( ":mobile-checkboxradio" ).checkboxradio( "refresh" );
89+
}
8890
this._addFirstLastClasses( els, this.options.excludeInvisible ? this._getVisibles( els, create ) : els, create );
8991
},
9092

0 commit comments

Comments
 (0)