Browse Source

Simplifies EventEmitterForwarder.forward code

dev1
hristoterezov 9 years ago
parent
commit
342e8ac5c0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/util/EventEmitterForwarder.js

+ 1
- 1
modules/util/EventEmitterForwarder.js View File

@@ -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;

Loading…
Cancel
Save