* Removes event listeners and other traces left on the page.
()
| 270 | * Removes event listeners and other traces left on the page. |
| 271 | */ |
| 272 | function cleanup() { |
| 273 | observer && observer.disconnect(); |
| 274 | removeEvent(wheelEvent, wheel); |
| 275 | removeEvent("mousedown", mousedown); |
| 276 | removeEvent("keydown", keydown); |
| 277 | } |
| 278 | /** |
| 279 | * Make sure we are the last listener on the page so special |
| 280 | * key event handlers (e.g for <video>) can come before us |
no test coverage detected