src/aria/utils/Path.js
function (path, inside) {
            if (ariaUtilsType.isString(path)) {
                path = this.parse(path);
            }
            inside = inside ? inside : Aria.$window;
            if (ariaUtilsType.isArray(path)) {
                for (var index = 0, param, len = path.length; index < len; index++) {
                    param = path[index];
                    inside = inside[param];
                    if (!inside && index != len - 1) {
                        throw {
                            error : this.RESOLVE_FAIL,
                            args : [path],
                            object : inside
                        };
                    }
                }
                return inside;
            }
            throw {
                error : this.RESOLVE_FAIL,
                args : [path],
                object : inside
            };
        }
function (path, inside) {
            if (ariaUtilsType.isString(path)) {
                path = this.parse(path);
            }
            inside = inside ? inside : Aria.$window;
            if (ariaUtilsType.isArray(path)) {
                for (var index = 0, param, len = path.length; index < len; index++) {
                    param = path[index];
                    inside = inside[param];
                    if (!inside && index != len - 1) {
                        throw {
                            error : this.RESOLVE_FAIL,
                            args : [path],
                            object : inside
                        };
                    }
                }
                return inside;
            }
            throw {
                error : this.RESOLVE_FAIL,
                args : [path],
                object : inside
            };
        }
function ( path , inside ) { if ( ariaUtilsType . isString ( path ) ) { path = this . parse ( path ) ; } inside = inside ? inside : Aria . $window ; if ( ariaUtilsType . isArray ( path ) ) { for ( var index = 0 , param , len = path . length ; index < len ; index ++ ) { param = path [ index ] ; inside = inside [ param ] ; if ( ! inside && index != len - 1 ) { throw { error : this . RESOLVE_FAIL , args : [ path ] , object : inside } ; } } return inside ; } throw { error : this . RESOLVE_FAIL , args : [ path ] , object : inside } ; }
Resolve a path inside an object, and return result
@param {String|Array} path If a string, will parse it. If Array, specifies the suite of parameters to
follow.
@param {Object} inside If not specified, window is used.
Resolve a path inside an object and return result