src/core/resource-manager.js
function addResourceToMap(map, def, start) {
    var sched = JSON.parse(JSON.stringify(def.available || defaultSched)),
        nextFn = schedule.memoizedRangeFn(later.schedule(sched).nextRange);

    map[def.id] = { schedule: sched, next: nextFn, nextAvail: nextFn(start) };
  }
function addResourceToMap(map, def, start) {
    var sched = JSON.parse(JSON.stringify(def.available || defaultSched)),
        nextFn = schedule.memoizedRangeFn(later.schedule(sched).nextRange);

    map[def.id] = { schedule: sched, next: nextFn, nextAvail: nextFn(start) };
  }
function addResourceToMap ( map , def , start ) { var sched = JSON . parse ( JSON . stringify ( def . available || defaultSched ) ) , nextFn = schedule . memoizedRangeFn ( later . schedule ( sched ) . nextRange ) ; map [ def . id ] = { schedule : sched , next : nextFn , nextAvail : nextFn ( start ) } ; }
Adds a resource to the resource map.
Adds a resource to the resource map .