2.1.4 • Published 5 years ago

irrelon-emitter v2.1.4

Weekly downloads
73
License
-
Repository
github
Last release
5 years ago

Irrelon Emitter

Version 2.1.4

Usage

Browser

Include the ./dist/index.min.js file in your HTML

<script src="./dist/index.min.js"></script>

Node.js

Install via NPM:

npm install irrelon-emitter

Include in your application:

var Emitter = require('irrelon-emitter');

Add Emitter Functionality to Existing Class

Given an example class:

var MyClass = function () {
	this.emit('myEvent', myData, myOtherData);
};

Add emitter functionality:

Emitter(MyClass);

Your class now inherits the emitter methods:

  • on
  • off
  • once
  • emit
  • emitId
  • emitStatic
  • emitStaticId
  • cancelStatic
  • deferEmit
  • willEmit
2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.16

5 years ago

2.0.15

5 years ago

2.0.12

5 years ago

2.0.11

6 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.3

7 years ago

2.0.2

8 years ago

2.0.0

8 years ago

1.1.9

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.0

8 years ago

1.0.2

9 years ago