MCPcopy Index your code
hub / github.com/WebReflection/wicked-elements / attributeChangedCallback

Function attributeChangedCallback

cjs/index.js:14–20  ·  view source on GitHub ↗
(records, o)

Source from the content-addressed store, hash-verified

12const defined = {};
13
14const attributeChangedCallback = (records, o) => {
15 for (let h = attributes.get(o), i = 0, {length} = records; i < length; i++) {
16 const {target, attributeName, oldValue} = records[i];
17 const newValue = target.getAttribute(attributeName);
18 h.attributeChanged(attributeName, oldValue, newValue);
19 }
20};
21
22const set = (value, m, l, o) => {
23 const handler = create(o, {element: {enumerable: true, value}});

Callers

nothing calls this directly

Calls 1

attributeChangedMethod · 0.80

Tested by

no test coverage detected