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

Method layoutCallback

test/integration/test-video-manager.js:494–501  ·  view source on GitHub ↗

@override

()

Source from the content-addressed store, hash-verified

492
493 /** @override */
494 layoutCallback() {
495 const iframe = this.element.ownerDocument.createElement('iframe');
496 this.element.appendChild(iframe);
497
498 return Promise.resolve().then(() => {
499 dispatchCustomEvent(this.element, VideoEvents_Enum.LOAD);
500 });
501 }
502
503 // VideoInterface Implementation. See ../src/video-interface.VideoInterface
504

Callers

nothing calls this directly

Calls 3

dispatchCustomEventFunction · 0.90
resolveMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected