Skip to content

Instantly share code, notes, and snippets.

View Paper-Folding's full-sized avatar

Paper-Folding

  • China
View GitHub Profile
'use strict';
/** Base class for generic event handling.
* @example
*
* // Don’t forget to call `super()` if defining a constructor.
* class Foo extends Eventable {}
* let foo = new Foo();
*
* foo.on('bar', (data) => console.log(data));