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

Method getTransferLayer_

src/service/fixed-layer.js:835–843  ·  view source on GitHub ↗

* @return {?TransferLayerDef}

()

Source from the content-addressed store, hash-verified

833 * @return {?TransferLayerDef}
834 */
835 getTransferLayer_() {
836 // This mode is only allowed for a single-doc case.
837 if (!this.transfer_ || this.transferLayer_) {
838 return this.transferLayer_;
839 }
840 const doc = this.ampdoc.win.document;
841 this.transferLayer_ = new TransferLayerBody(doc, this.vsync_);
842 return this.transferLayer_;
843 }
844
845 /**
846 * Find all `position:fixed` and `position:sticky` elements.

Callers 4

enterLightboxMethod · 0.95
leaveLightboxMethod · 0.95
updateMethod · 0.95
mutateElement_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected