mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-21 06:40:59 +00:00
needed a .length in the condition
This commit is contained in:
parent
5008c95fed
commit
722fb14f5b
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ $.fn.controlgroup = function(options){
|
|||
$(this).wrapInner('<div class="ui-controlgroup-controls"></div>');
|
||||
|
||||
//replace legend with more stylable replacement div
|
||||
if(groupheading){
|
||||
if( groupheading.length ){
|
||||
$('<div role="heading" class="ui-controlgroup-label">'+ groupheading.html() +'</div>').insertBefore( $(this).children(0) );
|
||||
groupheading.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue