This mixin provides on(), once(), off() and emit() methods to fire and receive events. Source: mixin/events.js, line 3 Example var collection = new KagoDB(); collection.on('hello', function(data) { console.log('Hello,', data); }); collection.emit('hello', 'world!'); // => 'hello, world!'