lib/ImageCache.js
function (src) {
    var image = _instancePool.get(src);
    if (!image) {
      // Awesome LRU
      image = new Img(src);
      if (_instancePool.length >= kInstancePoolLength) {
        _instancePool.popLeastUsed().destructor();
      }
      _instancePool.push(image.getOriginalSrc(), image);
    }
    return image;
  }
function (src) {
    var image = _instancePool.get(src);
    if (!image) {
      // Awesome LRU
      image = new Img(src);
      if (_instancePool.length >= kInstancePoolLength) {
        _instancePool.popLeastUsed().destructor();
      }
      _instancePool.push(image.getOriginalSrc(), image);
    }
    return image;
  }
function ( src ) { var image = _instancePool . get ( src ) ; if ( ! image ) { // Awesome LRU image = new Img ( src ) ; if ( _instancePool . length >= kInstancePoolLength ) { _instancePool . popLeastUsed ( ) . destructor ( ) ; } _instancePool . push ( image . getOriginalSrc ( ) , image ) ; } return image ; }
Retrieve an image from the cache

@return {Img}
Retrieve an image from the cache