* If emitting is enabled for this instance, then it will dispatch an event on the window. * @param {string} [eventName='Debugger'] Name of the event
(eventName = 'Debugger')
| 62 | * @param {string} [eventName='Debugger'] Name of the event |
| 63 | */ |
| 64 | static emit(eventName = 'Debugger') { |
| 65 | Debugger.initParams(); |
| 66 | if (Debugger.params.emitEnabled) { |
| 67 | window.dispatchEvent(new Event(eventName)); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Returns logging levels. |