Permalink
Browse files

[controlgroup] Do not assume checkboxradio widget is defined

  • Loading branch information...
gabrielschulhof committed Nov 10, 2012
1 parent cc0ab78 commit 4ba4ea1f7b3c7d731b36de88880d2e31c9576dc1
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/widgets/controlgroup.js
@@ -84,7 +84,9 @@ define( [ "jquery",
_refresh: function( create ) {
var els = this.element.find( ".ui-btn" ).not( ".ui-slider-handle" );
this.element.find( ":mobile-checkboxradio" ).checkboxradio( "refresh" );
if ( $.mobile.checkboxradio ) {
this.element.find( ":mobile-checkboxradio" ).checkboxradio( "refresh" );
}
this._addFirstLastClasses( els, this.options.excludeInvisible ? this._getVisibles( els, create ) : els, create );
},

0 comments on commit 4ba4ea1

Please sign in to comment.