mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
15 lines
340 B
JavaScript
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(); |