B2G/gecko/toolkit/mozapps/extensions/test/browser/head.js
/**
   * Called to get Addons that have pending operations.
   *
   * @param  aTypes
   *         An array of types to fetch. Can be null to get all types
   * @param  aCallback
   *         A callback to pass an array of Addons to
   */
Called to get Addons that have pending operations.
@param  aTypes
An array of types to fetch. Can be null to get all types
@param  aCallback
A callback to pass an array of Addons to
Called to get Addons that have pending operations . @param aTypes An array of types to fetch . Can be null to get all types @param aCallback A callback to pass an array of Addons to
function MP_getAddonsWithOperationsByTypes(aTypes, aCallback) {
    var addons = this.addons.filter(function(aAddon) {
      if (aTypes && aTypes.length > 0 && aTypes.indexOf(aAddon.type) == -1)
        return false;
      return aAddon.pendingOperations != 0;
    });
    this._delayCallback(aCallback, addons);
  }
function MP_getAddonsWithOperationsByTypes ( aTypes , aCallback ) { var addons = this . addons . filter ( function ( aAddon ) { if ( aTypes && aTypes . length > 0 && aTypes . indexOf ( aAddon . type ) == - 1 ) return false ; return aAddon . pendingOperations != 0 ; } ) ; this . _delayCallback ( aCallback , addons ) ; }
Called to get Addons that have pending operations.
Called to get Addons that have pending operations .