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
2014-10-22 16:26:36 +02:00

15 lines
340 B
JavaScript

var util = require('util');
var EventEmitter = require('events').EventEmitter;
var events = require('./events');
function EventStore() {
EventEmitter.call(this);
}
util.inherits(EventStore, EventEmitter);
EventStore.prototype.create = function (obj) {
this.emit(events.featureCreated, obj);
};
module.exports = new EventStore();