MCPcopy
hub / github.com/ampproject/amphtml / setInViewport

Method setInViewport

src/service/resource.js:981–983  ·  view source on GitHub ↗

* Updates the inViewport state of the element. * @param {boolean} inViewport

(inViewport)

Source from the content-addressed store, hash-verified

979 * @param {boolean} inViewport
980 */
981 setInViewport(inViewport) {
982 this.isInViewport_ = inViewport;
983 }
984
985 /**
986 * Calls element's unlayoutCallback callback and resets state for

Callers 3

unlayoutMethod · 0.95
test-resource.jsFile · 0.80
discoverWork_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected