* @param {!./ampdoc-impl.AmpDoc} ampdoc
(ampdoc)
| 25 | * @param {!./ampdoc-impl.AmpDoc} ampdoc |
| 26 | */ |
| 27 | constructor(ampdoc) { |
| 28 | /** @const {!Document|!ShadowRoot} */ |
| 29 | this.root_ = ampdoc.getRootNode(); |
| 30 | const doc = this.root_.ownerDocument || this.root_; |
| 31 | |
| 32 | /** @const {!Window} */ |
| 33 | this.win_ = /** @type {!Window} */ (devAssert(doc.defaultView)); |
| 34 | |
| 35 | /** @private {?MutationObserver} */ |
| 36 | this.mutationObserver_ = null; |
| 37 | |
| 38 | /** @private {?Observable<!Array<!MutationRecord>>} */ |
| 39 | this.observable_ = null; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Adds the observer to this instance. |
nothing calls this directly
no test coverage detected