Package Exports
- ekho
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ekho) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Ekho
A DOM-agnostic eventing library with bubbling.
Example
// Inherit from Eventful
var Thing = Eventful.derive({
say:
function _say(message) {
this.trigger('say', message)
}
})
// Instantiate
var foo = Thing.make()
var bar = Thing.make(foo) // bar events will bubble to foo
// Attach some listeners
foo.on('say', function(a) {
console.log('foo:', a)
})
bar.on('say', function(a) {
console.log('bar:', a)
})
// Then trigger the events
bar.say('Hello')
// => bar: Hello
// => foo: Hello
foo.say('Hello')
// => foo: HelloInstalling
$ npm install ekhoPlatform support
This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :3
Licence
MIT/X11. i.e.: Do whatever you fucking want, bro.


