MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:702–710  ·  view source on GitHub ↗

* @param {!Array<*>=} data * @param {boolean=} includesLabel

(data = [], includesLabel = true)

Source from the content-addressed store, hash-verified

700 * @param {boolean=} includesLabel
701 */
702 constructor(data = [], includesLabel = true) {
703 const base = includesLabel ? 1 : 0;
704
705 /** @private {?EventOriginator} */
706 this.eventOriginator_ = data[base] == null ? null : data[base];
707
708 /** @private {?boolean} */
709 this.isFromUserAction_ = data[1 + base] == null ? null : data[1 + base];
710 }
711
712 /**
713 * @return {?EventOriginator}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected