$ npm install @isoden/eveemi --save
var Model = function () {
EveEmi.apply(this, arguments);
this.attrs = {};
};
Model.prototype = new EveEmi();
Model.prototype.set = function (key, value) {
this.attrs[key] = value;
this.trigger('set');
};
var model = new Model();
model.on('set', function () {
alert('set!');
});
model.set('name', 'isoden'); // alert: 'set!'
MIT License http://isoden.mit-license.org