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

Method constructor

test/unit/test-fixed-layer.js:191–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190 class FakeAttributes {
191 constructor() {
192 const attrs = [];
193 attrs.setNamedItem = function ({name, value}) {
194 for (let i = 0; i < this.length; i++) {
195 if (this[i].name === name) {
196 this[i].value = value;
197 return;
198 }
199 }
200 this.push(new FakeAttr(name, value));
201 };
202 return attrs;
203 }
204 }
205 class FakeAttr {
206 constructor(name, value) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected