(event, func)
| 405 | } |
| 406 | } |
| 407 | on(event, func) { |
| 408 | if (!this.functions) this.functions = {}; |
| 409 | if (!Array.isArray(this.functions[event])) this.functions[event] = []; |
| 410 | this.functions[event].push(func); |
| 411 | } |
| 412 | callEvent(event, data) { |
| 413 | if (!this.functions) this.functions = {}; |
| 414 | if (!Array.isArray(this.functions[event])) return 0; |
no outgoing calls
no test coverage detected