var targets = []; module.exports = { sub: function(fn) { targets.push(fn); }, trigger: function(v) { targets.forEach(function(fn) { fn(v); }); } };