deventor
v2.0.4
Published
A pure Javascript event emitter
Downloads
4
Maintainers
Readme
Include the files in your index.html
:
<script src="deventor.min.js"></script>
var myDeventor = new Deventor({
name: 'myDeventor'
});
myDeventor.on('myCustomEvent', function (args) {
// ...
});
myDeventor.emit('myCustomEvent', {
arg1: 'arg1',
arg2: 'arg2'
});
Install dependencies, build the source files and preview
git clone https://github.com/Naimikan/deventor.git
npm install
grunt && grunt preview