src/basis/tracker.js
function loadMap(map){
  if (!map)
  {
    /** @cut */ basis.dev.warn(namespace + '.loadMap(): Wrong value for map');
    return;
  }

  for (var key in map)
  {
    var eventsMap = map[key];

    if (!eventsMap)
    {
      /** @cut */ basis.dev.warn(namespace + '.loadMap(): Value of map should be an object for path: ' + key);
      continue;
    }

    var selector = parsePath(key);
    for (var events in eventsMap)
    {
      var data = eventsMap[events];

      events.trim().split(/\s+/).forEach(function(eventName){
        registrateSelector(selector, eventName, data);
      });
    }
  }
}
function loadMap(map){
  if (!map)
  {
    /** @cut */ basis.dev.warn(namespace + '.loadMap(): Wrong value for map');
    return;
  }

  for (var key in map)
  {
    var eventsMap = map[key];

    if (!eventsMap)
    {
      /** @cut */ basis.dev.warn(namespace + '.loadMap(): Value of map should be an object for path: ' + key);
      continue;
    }

    var selector = parsePath(key);
    for (var events in eventsMap)
    {
      var data = eventsMap[events];

      events.trim().split(/\s+/).forEach(function(eventName){
        registrateSelector(selector, eventName, data);
      });
    }
  }
}
function loadMap ( map ) { if ( ! map ) { /** @cut */ basis . dev . warn ( namespace + '.loadMap(): Wrong value for map' ) ; return ; } for ( var key in map ) { var eventsMap = map [ key ] ; if ( ! eventsMap ) { /** @cut */ basis . dev . warn ( namespace + '.loadMap(): Value of map should be an object for path: ' + key ) ; continue ; } var selector = parsePath ( key ) ; for ( var events in eventsMap ) { var data = eventsMap [ events ] ; events . trim ( ) . split ( / \s+ / ) . forEach ( function ( eventName ) { registrateSelector ( selector , eventName , data ) ; } ) ; } } }
main API  
Registers all selectors from a given map
@param {Object} map
@return
main API Registers all selectors from a given map