made sure ui-page class is only added if there's no closest('.ui-page') present on it during mobilize call

This commit is contained in:
scottjehl 2010-09-19 18:11:39 -04:00
parent 8c7205c3ad
commit 14436257f6

View file

@ -227,7 +227,9 @@
//to-do: make sure this only runs one time on a page (or maybe per component)
return $el.not('[data-mobilized]').each(function(){
//add ui-page class
$el.addClass('ui-page');
if( !$el.closest('.ui-page').length ) {
$el.addClass('ui-page');
}
//dialog
$el.filter('[data-role="dialog"]').dialog();
//checkboxes, radios