B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * 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 XPI_getAddonByID(aId, aCallback) {
    XPIDatabase.getVisibleAddonForID (aId, function getAddonByID_getVisibleAddonForID(aAddon) {
      if (aAddon)
        aCallback(createWrapper(aAddon));
      else
        aCallback(null);
    });
  }
function XPI_getAddonByID ( aId , aCallback ) { XPIDatabase . getVisibleAddonForID ( aId , function getAddonByID_getVisibleAddonForID ( aAddon ) { if ( aAddon ) aCallback ( createWrapper ( aAddon ) ) ; else aCallback ( null ) ; } ) ; }
Called to get an Addon with a particular ID.
Called to get an Addon with a particular ID .