on(event, callback) {
    if (Events.local.supports(event)) {
      if (!this._callbacks[event]) {
        this._callbacks[event] = [];
      }
      this._callbacks[event].push(callback);
    }
  }
/**
   * Register a callback for a specific event
   * @param {string} event The event name ({@link Events/Stream})
   * @param {function} callback The callback for the event
   */
Register a callback for a specific event
@param {string} event The event name ( Events/Stream)
@param {function} callback The callback for the event
Register a callback for a specific event @param { string } event The event name ( Events / Stream ) @param { function } callback The callback for the event
on(event, callback) {
    if (Events.local.supports(event)) {
      if (!this._callbacks[event]) {
        this._callbacks[event] = [];
      }
      this._callbacks[event].push(callback);
    }
  }
on ( event , callback ) { if ( Events . local . supports ( event ) ) { if ( ! this . _callbacks [ event ] ) { this . _callbacks [ event ] = [ ] ; } this . _callbacks [ event ] . push ( callback ) ; } }
Register a callback for a specific event
 @param {string} event The event name ({@link Events/Stream})
 @param {function} callback The callback for the event
Register a callback for a specific event @param { string } event The event name ( { @link Events / Stream } ) @param { function } callback The callback for the event