B2G/gecko/browser/components/tabview/modules/utils.jsm
// Internal routine. Used by the Subscribable to fire events.
Internal routine. Used by the Subscribable to fire events.
Internal routine . Used by the Subscribable to fire events .
function Subscribable__sendToSubscribers(eventName, eventInfo) {
    try {
      Utils.assertThrow(eventName && typeof eventName == "string",
          "eventName must be a non-empty string");
    } catch(e) {
      Utils.log(e);
      return;
    }
    if (!this.subscribers || !this.subscribers[eventName])
      return;
    let subsCopy = this.subscribers[eventName].concat();
    subsCopy.forEach(function (callback) {
      try {
        callback(this, eventInfo);
      } catch(e) {
        Utils.log(e);
      }
    }, this);
  }
function Subscribable__sendToSubscribers ( eventName , eventInfo ) { try { Utils . assertThrow ( eventName && typeof eventName == "string" , "eventName must be a non-empty string" ) ; } catch ( e ) { Utils . log ( e ) ; return ; } if ( ! this . subscribers || ! this . subscribers [ eventName ] ) return ; let subsCopy = this . subscribers [ eventName ] . concat ( ) ; subsCopy . forEach ( function ( callback ) { try { callback ( this , eventInfo ) ; } catch ( e ) { Utils . log ( e ) ; } } , this ) ; }
Internal routine.
Internal routine .