dist/dust-intl.js
/**
     Returns something from deep within the a value in the context, taking into
     consideration the context stack.  (The built-in version of context.get()
     isn't quite sophisticated enough for us.)
     @protected
     @method contextGet
     @param {Object} ctx The dust context.
     @param {Array} keys An ordered list of keys to drill down into the data structure.
     @return {mixed} Value found for the key path, or undefined if not found.
     */
Returns something from deep within the a value in the context, taking into
consideration the context stack.  (The built-in version of context.get()
isn't quite sophisticated enough for us.)
Returns something from deep within the a value in the context taking into consideration the context stack . ( The built - in version of context . get () isn ' t quite sophisticated enough for us . )
function $$utils$$contextGet(ctx, keys) {
        var frame,  
            value;
        for (frame = ctx.stack; frame; frame = frame.tail) {
            value = $$utils$$getResult(frame.head, keys);
            if (value !== undefined) {
                break;
            }
        }
        if (value === undefined) {
            value = $$utils$$getResult(ctx.global, keys);
        }
        return value;
    }
function $$utils$$contextGet ( ctx , keys ) { var frame , value ; for ( frame = ctx . stack ; frame ; frame = frame . tail ) { value = $$utils$$getResult ( frame . head , keys ) ; if ( value !== undefined ) { break ; } } if ( value === undefined ) { value = $$utils$$getResult ( ctx . global , keys ) ; } return value ; }
Returns something from deep within the a value in the context, taking into
consideration the context stack.
Returns something from deep within the a value in the context taking into consideration the context stack .
// the current stack frame // search up the stacks // finding the ordered keys in current stack frame // found the ordered keys path in current stack, use that // can't find the keys in context stacks, try context global