_eventChannel(event) {

    // IE9 requires the data to be extracted here as it will fail when trying to
    // set the data property of the event in the try / catch below

    // Extract the event data
    var eventData = event.data;

    // If this message came from this player, handle it
    if (this._validateEvent(event)) {

      // Store the event in the list of incoming messages
      this._messages.incoming = lastElements(this._messages.incoming.concat([event]), 25);

      // Always trigger a generic message event whenever a message is received
      this._triggerEvent('message');

      // Hand of the valid event to the be parsed and potentially
      // triggered
      this._triggerEvent(eventData);
    }
  }
/**
   * An event channel function that handles message events and checks to see if
   * they belong to the PBS Cove API. If they do, they are then triggered
   * directly on the bound PBSMessageAPI
   *
   * @param event
   * @private
   */
An event channel function that handles message events and checks to see if
they belong to the PBS Cove API. If they do, they are then triggered
directly on the bound PBSMessageAPI

@param event
@private
An event channel function that handles message events and checks to see if they belong to the PBS Cove API . If they do they are then triggered directly on the bound PBSMessageAPI @param event @private
_eventChannel(event) {
    var eventData = event.data;
    if (this._validateEvent(event)) {
      this._messages.incoming = lastElements(this._messages.incoming.concat([event]), 25);
      this._triggerEvent('message');
      this._triggerEvent(eventData);
    }
  }
_eventChannel ( event ) { var eventData = event . data ; if ( this . _validateEvent ( event ) ) { this . _messages . incoming = lastElements ( this . _messages . incoming . concat ( [ event ] ) , 25 ) ; this . _triggerEvent ( 'message' ) ; this . _triggerEvent ( eventData ) ; } }
An event channel function that handles message events and checks to see if
 they belong to the PBS Cove API.
An event channel function that handles message events and checks to see if they belong to the PBS Cove API .
// IE9 requires the data to be extracted here as it will fail when trying to // set the data property of the event in the try / catch below // Extract the event data // If this message came from this player, handle it // Store the event in the list of incoming messages // Always trigger a generic message event whenever a message is received // Hand of the valid event to the be parsed and potentially // triggered