1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/unleash-server/lib/eventStore.js

15 lines
340 B
JavaScript
Raw Normal View History

var util = require('util');
var EventEmitter = require('events').EventEmitter;
var events = require('./events');
2014-10-22 16:26:36 +02:00
function EventStore() {
EventEmitter.call(this);
}
2014-10-22 16:26:36 +02:00
util.inherits(EventStore, EventEmitter);
2014-10-22 16:26:36 +02:00
EventStore.prototype.create = function (obj) {
this.emit(events.featureCreated, obj);
};
2014-10-22 16:26:36 +02:00
module.exports = new EventStore();