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

Function updateDocumentVisibility

test/unit/test-ampdoc.js:470–475  ·  view source on GitHub ↗
(doc, visibilityState)

Source from the content-addressed store, hash-verified

468 });
469
470 function updateDocumentVisibility(doc, visibilityState) {
471 doc.visibilityState = visibilityState;
472 if (doc.addEventListener.args.length > 0) {
473 doc.addEventListener.args[0][1]();
474 }
475 }
476
477 it('should set up and destroy listeners', () => {
478 // 1 for top, 1 for embedSameWindow.

Callers 1

test-ampdoc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected