()
| 284 | let isUnloadHandlerAttached = false; |
| 285 | |
| 286 | let attachUnloadHandler = () => { |
| 287 | if (!isUnloadHandlerAttached) { |
| 288 | isUnloadHandlerAttached = true; |
| 289 | global.addEventListener('beforeunload', unloadHandler, false); |
| 290 | } |
| 291 | }; |
| 292 | |
| 293 | let detachUnloadHandler = () => { |
| 294 | if (isUnloadHandlerAttached) { |
no outgoing calls
no test coverage detected
searching dependent graphs…