Irrelon Emitter
Version 2.1.4
Usage
Browser
Include the ./dist/index.min.js file in your HTML
Node.js
Install via NPM:
npm install irrelon-emitter
Include in your application:
var Emitter = ;
Add Emitter Functionality to Existing Class
Given an example class:
var { this;};
Add emitter functionality:
;
Your class now inherits the emitter methods:
- on
- off
- once
- emit
- emitId
- emitStatic
- emitStaticId
- cancelStatic
- deferEmit
- willEmit