protected void doPageBeforeHide(Element nextPage) {
        final JQMPage nextPg = findPage(nextPage);

        if (nextPg != null && nextPg.isDialog() && nextPg.isDlgTransparent()
                && nextPg.getElement() != transparentPrevPage // fix for: page1 -> dlg1 -> dlg2 -> dlg2.closeDialog()
           ) {
            // openDialog() -> JQMContext.changePage() calls hide for current page first, and only
            // after that will call show for dialog itself, so we have to process transparent
            // property immediately right here, and suppress rest of the hide logic for current page.
            nextPg.prepareTransparentPrevPage(getElement());
            return;
        }

        onPageBeforeHide();
        JQMPageEvent.fire(this, PageState.BEFORE_HIDE, this, nextPg);
        if (isDialog()) {
            isDlgCloseable = false;
            if (transparent) prepareTransparentOpened(false/*add*/, getId());
        }
    }
protected void doPageBeforeHide ( Element nextPage ) { final JQMPage nextPg = findPage ( nextPage ) ; if ( nextPg != null && nextPg . isDialog ( ) && nextPg . isDlgTransparent ( ) && nextPg . getElement ( ) != transparentPrevPage ) { nextPg . prepareTransparentPrevPage ( getElement ( ) ) ; return ; } onPageBeforeHide ( ) ; JQMPageEvent . fire ( this , PageState . BEFORE_HIDE , this , nextPg ) ; if ( isDialog ( ) ) { isDlgCloseable = false ; if ( transparent ) prepareTransparentOpened ( false , getId ( ) ) ; } }
@param nextPage - DOM element that we are transitioning to.