lib/client/execute.js
function onLinksDone(loaded) {
                                if (loaded === 2) {
                                    if (hasLayoutChanged) {
                                        $target.find('[lazo-cmp-name]').remove();
                                        $target.append(html);
                                    } else {
                                        $target.html(html);
                                    }
                                    setTimeout(function () {
                                        LAZO.error.clear();
                                        $target.css({ 'visibility': 'visible'} );
                                        viewManager.attachViews(ctl, function (err, success) {
                                            if (err) {
                                                LAZO.logger.error('[LAZO.navigate] Error attaching views', err);
                                            }

                                            doc.updatePageTags(LAZO.ctl.ctx, function (err) {
                                                if (err) {
                                                    LAZO.logger.error('[LAZO.navigate] Error updating page tags', err);
                                                }

                                                doc.setTitle(LAZO.ctl.ctx._rootCtx.pageTitle);
                                                LAZO.app.trigger('navigate:application:complete', eventData);
                                            });
                                        });
                                    }, 0);
                                }
                            }
function onLinksDone(loaded) {
                                if (loaded === 2) {
                                    if (hasLayoutChanged) {
                                        $target.find('[lazo-cmp-name]').remove();
                                        $target.append(html);
                                    } else {
                                        $target.html(html);
                                    }
                                    setTimeout(function () {
                                        LAZO.error.clear();
                                        $target.css({ 'visibility': 'visible'} );
                                        viewManager.attachViews(ctl, function (err, success) {
                                            if (err) {
                                                LAZO.logger.error('[LAZO.navigate] Error attaching views', err);
                                            }

                                            doc.updatePageTags(LAZO.ctl.ctx, function (err) {
                                                if (err) {
                                                    LAZO.logger.error('[LAZO.navigate] Error updating page tags', err);
                                                }

                                                doc.setTitle(LAZO.ctl.ctx._rootCtx.pageTitle);
                                                LAZO.app.trigger('navigate:application:complete', eventData);
                                            });
                                        });
                                    }, 0);
                                }
                            }
function onLinksDone ( loaded ) { if ( loaded === 2 ) { if ( hasLayoutChanged ) { $target . find ( '[lazo-cmp-name]' ) . remove ( ) ; $target . append ( html ) ; } else { $target . html ( html ) ; } setTimeout ( function ( ) { LAZO . error . clear ( ) ; $target . css ( { 'visibility' : 'visible' } ) ; viewManager . attachViews ( ctl , function ( err , success ) { if ( err ) { LAZO . logger . error ( '[LAZO.navigate] Error attaching views' , err ) ; } doc . updatePageTags ( LAZO . ctl . ctx , function ( err ) { if ( err ) { LAZO . logger . error ( '[LAZO.navigate] Error updating page tags' , err ) ; } doc . setTitle ( LAZO . ctl . ctx . _rootCtx . pageTitle ) ; LAZO . app . trigger ( 'navigate:application:complete' , eventData ) ; } ) ; } ) ; } , 0 ) ; } }
remove orphaned models
remove orphaned models