B2G/gecko/toolkit/mozapps/extensions/test/browser/head.js
/**
   * Called to get an Addon with a particular ID.
   *
   * @param  aId
   *         The ID of the add-on to retrieve
   * @param  aCallback
   *         A callback to pass the Addon to
   */
Called to get an Addon with a particular ID.
@param  aId
The ID of the add-on to retrieve
@param  aCallback
A callback to pass the Addon to
Called to get an Addon with a particular ID . @param aId The ID of the add - on to retrieve @param aCallback A callback to pass the Addon to
function MP_getAddon(aId, aCallback) {
    for (let addon of this.addons) {
      if (addon.id == aId) {
        this._delayCallback(aCallback, addon);
        return;
      }
    }
    aCallback(null);
  }
function MP_getAddon ( aId , aCallback ) { for ( let addon of this . addons ) { if ( addon . id == aId ) { this . _delayCallback ( aCallback , addon ) ; return ; } } aCallback ( null ) ; }
Called to get an Addon with a particular ID.
Called to get an Addon with a particular ID .