Relative Content

Tag Archive for node.jsevent-handling

Node.js: How to use variable from outer scope of event in EventEmitter?

I use newman library method run which creates EventEmitter. I do in loop and create multiple instances of EventEmitter. When event is fired, I would like to access variable from outer scope and have value which was set at time when method run was invoked (and EventEmitter created).
Pseudo code