2014-01-05 20:07:11 +04:00

22 lines
417 B
JavaScript

var helper = require('../helper');
var MultiReporter = function(reporters) {
this.addAdapter = function(adapter) {
reporters.forEach(function(reporter) {
reporter.adapters.push(adapter);
});
};
this.removeAdapter = function(adapter) {
reporters.forEach(function(reporter) {
helper.arrayRemove(reporter.adapters, adapter);
});
};
};
// PUBLISH
module.exports = MultiReporter;