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

Method getFirstMessageEventOfType

testing/iframe.js:664–671  ·  view source on GitHub ↗

* @param {string} type * @returns {?Event}

(type)

Source from the content-addressed store, hash-verified

662 * @returns {?Event}
663 */
664 getFirstMessageEventOfType(type) {
665 for (let i = 0; i < this.events_.length; ++i) {
666 if (this.events_[i].data.type === type) {
667 return this.events_[i];
668 }
669 }
670 return null;
671 }
672
673 /**
674 * @param {*} data

Callers 1

test-amp-ad-3p.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected