* Register the MutationObserver instance to observe a Nodes mutations. * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver * @param target Node to observe DOM mutations
(target: Node, options?: MutationObserverInit)
| 79 | * @param target Node to observe DOM mutations |
| 80 | */ |
| 81 | public observe(target: Node, options?: MutationObserverInit): void { |
| 82 | this.disconnect(); |
| 83 | this.target = target; |
| 84 | this.options = options || {}; |
| 85 | |
| 86 | observers.push(this); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Stop the MutationObserver instance from observing a Nodes mutations. |
no test coverage detected