An open API service indexing awesome lists of open source software.

https://github.com/phenax/event_handler_js

A very simple event handler which allows you to create and emit custom events.
https://github.com/phenax/event_handler_js

Last synced: 3 months ago
JSON representation

A very simple event handler which allows you to create and emit custom events.

Awesome Lists containing this project

README

        

# A SIMPLE EVENT HANDLER FOR JS

### To create an event, use...
```javascript
events.bind('nameOfEvent',eventCallback);
```

### To emit an event, use...
```javascript
events.emit('nameOfEvent');
```

### To remove an event, use...
```javascript
events.unbind('nameOfEvent',eventCallback);
```