text: /********************************************************************************
   * generated by de.acegen
   ********************************************************************************/
  
  
  
  
  import * as ACEController from "./ACEController";
  
  export default class Event {
      constructor(eventName) {
          this.eventName = eventName;
      }
  
      publish(data) {
          ACEController.addItemToTimeLine({
              event: {
                  eventName: this.eventName,
                  data
              }
          });
          this.notifyListeners(data);
      }
  
      replay(data) {
          this.notifyListeners(data);
      }
  
      notifyListeners(data) {
          let i, listener;
          if (this.eventName !== undefined) {
              const listenersForEvent = ACEController.listeners[this.eventName];
              if (listenersForEvent !== undefined) {
                  for (i = 0; i < listenersForEvent.length; i += 1) {
                      listener = listenersForEvent[i];
  					listener(data);
                  }
              }
          }
      }
  
  }
  
  
  
  
  /******* S.D.G. *******/
  
  
  
  
  