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

Method constructor

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

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

(data = [], includesLabel = true)

Source from the content-addressed store, hash-verified

286 * @param {boolean=} includesLabel
287 */
288 constructor(data = [], includesLabel = true) {
289 const base = includesLabel ? 1 : 0;
290
291 /** @private {?ActionType} */
292 this.action_ = data[base] == null ? null : data[base];
293 }
294
295 /**
296 * @return {?ActionType}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected