Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 990 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 990 Bytes

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