(records)
| 42 | const {win} = ampdoc; |
| 43 | const inViewport = this.inViewport_.bind(this); |
| 44 | const ioCallback = (records) => |
| 45 | /** @type {!Array<!IntersectionObserverEntry>} */ (records).forEach( |
| 46 | inViewport |
| 47 | ); |
| 48 | /** @private @const {!IntersectionObserver} */ |
| 49 | this.io_ = createViewportObserver(ioCallback, win); |
| 50 |