src/aria/core/DownloadMgr.js
function (map, pathparts, doubleStar) {
            for (var i = 0, l = pathparts.length; i < l; i++) {
                var part = pathparts[i];
                if (!this._typeUtils.isObject(map) || this._typeUtils.isInstanceOf(map, 'aria.core.JsObject')) {
                    break;
                }
                if (!map[part]) {
                    if (doubleStar) {
                        if (map['*'] && i == l - 1) {
                            map = map['*'];
                        } else {
                            map = map['**'];
                        }
                    } else {
                        map = map['*'];
                    }
                    break;
                }

                map = map[part];
            }
            return {
                node : map,
                index : i
            };
        }
function (map, pathparts, doubleStar) {
            for (var i = 0, l = pathparts.length; i < l; i++) {
                var part = pathparts[i];
                if (!this._typeUtils.isObject(map) || this._typeUtils.isInstanceOf(map, 'aria.core.JsObject')) {
                    break;
                }
                if (!map[part]) {
                    if (doubleStar) {
                        if (map['*'] && i == l - 1) {
                            map = map['*'];
                        } else {
                            map = map['**'];
                        }
                    } else {
                        map = map['*'];
                    }
                    break;
                }

                map = map[part];
            }
            return {
                node : map,
                index : i
            };
        }
function ( map , pathparts , doubleStar ) { for ( var i = 0 , l = pathparts . length ; i < l ; i ++ ) { var part = pathparts [ i ] ; if ( ! this . _typeUtils . isObject ( map ) || this . _typeUtils . isInstanceOf ( map , 'aria.core.JsObject' ) ) { break ; } if ( ! map [ part ] ) { if ( doubleStar ) { if ( map [ '*' ] && i == l - 1 ) { map = map [ '*' ] ; } else { map = map [ '**' ] ; } } else { map = map [ '*' ] ; } break ; } map = map [ part ] ; } return { node : map , index : i } ; }
Find node associated to a path in a map. May be a string, an object, a function or a instance of callback, or
null.
@protected
@param {Object} map
@param {Array} pathparts
@param {Boolean} doubleStar support double star ** notation
@return {Object} node and index in path
Find node associated to a path in a map . May be a string an object a function or a instance of callback or null .