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