mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
18 lines
357 B
JavaScript
18 lines
357 B
JavaScript
|
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;
|