B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Calls a method on the listener passing any number of arguments and
   * consuming any exceptions.
   *
   * @param  aMethod
   *         The method to call on the listener
   */
Calls a method on the listener passing any number of arguments and
consuming any exceptions.

@param  aMethod
The method to call on the listener
Calls a method on the listener passing any number of arguments and consuming any exceptions . @param aMethod The method to call on the listener
function UC_callListener(aMethod, ...aArgs) {
    if (!(aMethod in this.listener))
      return;
    try {
      this.listener[aMethod].apply(this.listener, aArgs);
    }
    catch (e) {
      LOG("Exception calling UpdateListener method " + aMethod + ": " + e);
    }
  }
function UC_callListener ( aMethod , ... aArgs ) { if ( ! ( aMethod in this . listener ) ) return ; try { this . listener [ aMethod ] . apply ( this . listener , aArgs ) ; } catch ( e ) { LOG ( "Exception calling UpdateListener method " + aMethod + ": " + e ) ; } }
Calls a method on the listener passing any number of arguments and
 consuming any exceptions.
Calls a method on the listener passing any number of arguments and consuming any exceptions .