src/basis/tracker.js
function getInfo(path){
  var result = [];

  if (typeof path == 'string')
    path = parsePath(path);

  for (var key in selectorMap)
    if (isPathMatchSelector(path, selectorMap[key].selector))
      result.push.apply(result, selectorMap[key].map(function(item){
        return basis.object.extend({
          selector: selectorMap[key].selector,
          selectorStr: selectorMap[key].selectorStr
        }, item);
      }));

  return result.length ? result : false;
}
function getInfo(path){
  var result = [];

  if (typeof path == 'string')
    path = parsePath(path);

  for (var key in selectorMap)
    if (isPathMatchSelector(path, selectorMap[key].selector))
      result.push.apply(result, selectorMap[key].map(function(item){
        return basis.object.extend({
          selector: selectorMap[key].selector,
          selectorStr: selectorMap[key].selectorStr
        }, item);
      }));

  return result.length ? result : false;
}
function getInfo ( path ) { var result = [ ] ; if ( typeof path == 'string' ) path = parsePath ( path ) ; for ( var key in selectorMap ) if ( isPathMatchSelector ( path , selectorMap [ key ] . selector ) ) result . push . apply ( result , selectorMap [ key ] . map ( function ( item ) { return basis . object . extend ( { selector : selectorMap [ key ] . selector , selectorStr : selectorMap [ key ] . selectorStr } , item ) ; } ) ) ; return result . length ? result : false ; }
Relies on `selectorMap`
Is used in devpanel.
@param {string|Array.<RoleObject>} path
@return {Array.<Object>|boolean} here Object is a tracking data object
Relies on selectorMap Is used in devpanel .