B2G/gecko/dom/apps/src/Webapps.js
// Gets an entry from the cache, and populates the cache if needed.
Gets an entry from the cache, and populates the cache if needed.
Gets an entry from the cache and populates the cache if needed .
function mcache_get(aManifestURL, aManifest, aWindow, aInnerWindowID) {
    if (!(aManifestURL in this._cache)) {
      this._cache[aManifestURL] = { };
    }
    let winObjs = this._cache[aManifestURL];
    if (!(aInnerWindowID in winObjs)) {
      winObjs[aInnerWindowID] = ObjectWrapper.wrap(aManifest, aWindow);
    }
    return winObjs[aInnerWindowID];
  }
function mcache_get ( aManifestURL , aManifest , aWindow , aInnerWindowID ) { if ( ! ( aManifestURL in this . _cache ) ) { this . _cache [ aManifestURL ] = { } ; } let winObjs = this . _cache [ aManifestURL ] ; if ( ! ( aInnerWindowID in winObjs ) ) { winObjs [ aInnerWindowID ] = ObjectWrapper . wrap ( aManifest , aWindow ) ; } return winObjs [ aInnerWindowID ] ; }
Gets an entry from the cache, and populates the cache if needed.
Gets an entry from the cache and populates the cache if needed .