lib/tools/phantomas/custom_modules/core/scopeYLT/scopeYLT.js
function leaveContext(moreData) {
                        
                        // Some data is not needed on subchildren
                        if (depth === 1) {
                            currentContext.data.time = Date.now() - currentContext.data.timestamp - responseEndTime;
                        }

                        // Some data is not needed on subchildren
                        if (depth > 1) {
                            if (moreData && moreData.backtrace) {
                                delete moreData.backtrace;
                            }
                            if (moreData && moreData.resultsNumber) {
                                delete moreData.resultsNumber;
                            }
                        }

                        // Merge previous data with moreData (ovewrites if exists)
                        if (moreData) {
                            for (var key in moreData) {
                                currentContext.data[key] = moreData[key];
                            }
                        }

                        var parent = currentContext.parent;
                        if (parent === null) {
                            console.error('Error: trying to close root context in ContextTree');
                        } else {
                            currentContext = parent;
                        }

                        depth --;
                    }
function leaveContext(moreData) {
                        
                        // Some data is not needed on subchildren
                        if (depth === 1) {
                            currentContext.data.time = Date.now() - currentContext.data.timestamp - responseEndTime;
                        }

                        // Some data is not needed on subchildren
                        if (depth > 1) {
                            if (moreData && moreData.backtrace) {
                                delete moreData.backtrace;
                            }
                            if (moreData && moreData.resultsNumber) {
                                delete moreData.resultsNumber;
                            }
                        }

                        // Merge previous data with moreData (ovewrites if exists)
                        if (moreData) {
                            for (var key in moreData) {
                                currentContext.data[key] = moreData[key];
                            }
                        }

                        var parent = currentContext.parent;
                        if (parent === null) {
                            console.error('Error: trying to close root context in ContextTree');
                        } else {
                            currentContext = parent;
                        }

                        depth --;
                    }
function leaveContext ( moreData ) { // Some data is not needed on subchildren if ( depth === 1 ) { currentContext . data . time = Date . now ( ) - currentContext . data . timestamp - responseEndTime ; } // Some data is not needed on subchildren if ( depth > 1 ) { if ( moreData && moreData . backtrace ) { delete moreData . backtrace ; } if ( moreData && moreData . resultsNumber ) { delete moreData . resultsNumber ; } } // Merge previous data with moreData (ovewrites if exists) if ( moreData ) { for ( var key in moreData ) { currentContext . data [ key ] = moreData [ key ] ; } } var parent = currentContext . parent ; if ( parent === null ) { console . error ( 'Error: trying to close root context in ContextTree' ) ; } else { currentContext = parent ; } depth -- ; }
Save given data in the current context and jump change current context to its parent
Save given data in the current context and jump change current context to its parent