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

Method constructor

test/unit/test-custom-element.js:44–47  ·  view source on GitHub ↗
(element, source)

Source from the content-addressed store, hash-verified

42
43 class TestElement extends BaseElement {
44 constructor(element, source) {
45 super(element);
46 this.source = source;
47 }
48
49 isLayoutSupported(unusedLayout) {
50 return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected