B2G/gecko/toolkit/mozapps/extensions/AddonManager.jsm
/**
   * Removes an InstallListener if the listener is registered.
   *
   * @param  aListener
   *         The InstallListener to remove
   */
Removes an InstallListener if the listener is registered.
@param  aListener
The InstallListener to remove
Removes an InstallListener if the listener is registered . @param aListener The InstallListener to remove
function AMI_removeInstallListener(aListener) {
    if (!aListener || typeof aListener != "object")
      throw Components.Exception("aListener must be a InstallListener object",
                                 Cr.NS_ERROR_INVALID_ARG);
    let pos = 0;
    while (pos < this.installListeners.length) {
      if (this.installListeners[pos] == aListener)
        this.installListeners.splice(pos, 1);
      else
        pos++;
    }
  }
function AMI_removeInstallListener ( aListener ) { if ( ! aListener || typeof aListener != "object" ) throw Components . Exception ( "aListener must be a InstallListener object" , Cr . NS_ERROR_INVALID_ARG ) ; let pos = 0 ; while ( pos < this . installListeners . length ) { if ( this . installListeners [ pos ] == aListener ) this . installListeners . splice ( pos , 1 ) ; else pos ++ ; } }
Removes an InstallListener if the listener is registered.
Removes an InstallListener if the listener is registered .