0.4.2 • Published 9 years ago

@elishacook/simple-events v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

SimpleEvents

Build Status

.on, .off, .once, etc. Have a look at the unit tests for usage examples.

Can be easily used as a mixin:

var SimpleEvents = require('simple-events')

var FooBar = function ()
{
    SimpleEvents.mixin(this)
}

var foobar = new FooBar()
foobar.on('stuff', function (x) { console.log(x + 10) })
foobar.emit('stuff', 10) // 20

Install

You can install using npm.

npm install @elishacook/simple-events
0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago