(handler, isFn, self, arg1, arg2)
| 93 | } |
| 94 | } |
| 95 | function emitTwo(handler, isFn, self, arg1, arg2) { |
| 96 | if (isFn) |
| 97 | handler.call(self, arg1, arg2); |
| 98 | else { |
| 99 | var len = handler.length; |
| 100 | var listeners = arrayClone(handler, len); |
| 101 | for (var i = 0; i < len; ++i) |
| 102 | listeners[i].call(self, arg1, arg2); |
| 103 | } |
| 104 | } |
| 105 | function emitThree(handler, isFn, self, arg1, arg2, arg3) { |
| 106 | if (isFn) |
| 107 | handler.call(self, arg1, arg2, arg3); |
no test coverage detected