Events

Events Super simple custom events

Constructor

new Events()

Example
class MyClass {
  constructor() {
      this.events = new Events( this  );
  }
  start() {
      this.emit( "start", { detail: { ... } } );
  }
}

const myInstance = new MyClass();
myInstance.on( "start", e => { ... } );