Skip to content

Naimikan/deventor

Repository files navigation

version license

deventor | API

A pure Javascript event emitter

Get Started

Include the files in your index.html:

<script src="deventor.min.js"></script>

Usage

var myDeventor = new Deventor({
  name: 'myDeventor'
});

myDeventor.on('myCustomEvent', function (args) {
  // ...
});

myDeventor.emit('myCustomEvent', {
  arg1: 'arg1',
  arg2: 'arg2'
});

Developing

Install dependencies, build the source files and preview

git clone https://github.com/Naimikan/deventor.git
npm install
grunt && grunt preview