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

Function attributeChangedCallback

esm/index.js:13–19  ·  view source on GitHub ↗
(records, o)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

attributeChangedMethod · 0.80

Tested by

no test coverage detected