()
| 1309 | } |
| 1310 | |
| 1311 | toString() { |
| 1312 | // When MS function parameter logging is enabled, toString may be called on windows that have been destroyed. |
| 1313 | // So we need to guard against this. super.toString would otherwise try to access the destroyed C object. |
| 1314 | if (this.lifecycleState.type === 'destroyed') { |
| 1315 | return `[destroyed MsWindow - ${this.app.get_name()}]`; |
| 1316 | } |
| 1317 | |
| 1318 | const string = super.toString(); |
| 1319 | return `${string.slice(0, string.length - 1)} ${this.app.get_name()}]`; |
| 1320 | } |
| 1321 | |
| 1322 | _onDestroy() { |
| 1323 | if (this.destroyId) this.disconnect(this.destroyId); |
no test coverage detected