1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/unleash-server/lib/eventRepository.js

18 lines
357 B
JavaScript
Raw Normal View History

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