|
|
@@ -31,7 +31,7 @@ EventEmitterForwarder.prototype.forward = function () {
|
|
31
|
31
|
args[0] = this.dest;
|
|
32
|
32
|
//Using bind.apply to pass the arguments as Array-like object ("arguments")
|
|
33
|
33
|
this.src.addListener(srcEvent,
|
|
34
|
|
- this.dest.emit.bind.apply(this.dest.emit, args));
|
|
|
34
|
+ Function.prototype.bind.apply(this.dest.emit, args));
|
|
35
|
35
|
};
|
|
36
|
36
|
|
|
37
|
37
|
module.exports = EventEmitterForwarder;
|