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