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

Function init

esm/index.js:99–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 lazy.add(selector);
98 define(selector, {
99 init() {
100 if (lazy.has(selector)) {
101 lazy.delete(selector);
102 callback().then(({default: definition}) => {
103 query.splice(query.indexOf(selector), 1);
104 drop(document.querySelectorAll(selector));
105 (_ || define)(selector, definition);
106 });
107 }
108 }
109 });
110};
111

Callers

nothing calls this directly

Calls 1

dropFunction · 0.85

Tested by

no test coverage detected