(event: string, ...args: any[])
| 28 | } |
| 29 | |
| 30 | public $emit(event: string, ...args: any[]) { |
| 31 | const callbacks = this._callbacks.get(event); |
| 32 | if (callbacks && callbacks.length > 0) { |
| 33 | callbacks.forEach((callback) => { |
| 34 | try { |
| 35 | callback.call(null, ...args); |
| 36 | } catch (error: any) { |
| 37 | reportErrorMsg(error); |
| 38 | } |
| 39 | }); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | public $destroySandbox() { |
| 44 | this.$emit("onUnmounted"); |
no test coverage detected