(callback: () => void)
| 34 | } |
| 35 | |
| 36 | pause(callback: () => void) { |
| 37 | if (this.started) { |
| 38 | this.mutationObserver.disconnect() |
| 39 | this.started = false |
| 40 | } |
| 41 | |
| 42 | callback() |
| 43 | |
| 44 | if (!this.started) { |
| 45 | this.mutationObserver.observe(this.element, this.mutationObserverInit) |
| 46 | this.started = true |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | stop() { |
| 51 | if (this.started) { |
no test coverage detected