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

Function init

cjs/index.js:102–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

dropFunction · 0.85

Tested by

no test coverage detected