src/core/resource-manager.js
function getLongestDelay(delays) {
    var latest, lid;
    for(var id in delays) {
      var available = delays[id].available;
      if(!latest || available < latest) {
        latest = available;
        lid = id;
      }
    }

    return lid;
  }
function getLongestDelay(delays) {
    var latest, lid;
    for(var id in delays) {
      var available = delays[id].available;
      if(!latest || available < latest) {
        latest = available;
        lid = id;
      }
    }

    return lid;
  }
function getLongestDelay ( delays ) { var latest , lid ; for ( var id in delays ) { var available = delays [ id ] . available ; if ( ! latest || available < latest ) { latest = available ; lid = id ; } } return lid ; }
Determines the longest delay amongst a set of delays. Used to determine
which resource to report for resources that are OR'd together.
Determines the longest delay amongst a set of delays . Used to determine which resource to report for resources that are OR d together .