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