MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / onload

Function onload

packages/utils/src/script.ts:24–34  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

22 const i = createDefer();
23
24 function onload(e: any) {
25 node.onload = null;
26 node.onerror = null;
27 if (e.type === 'load') {
28 i.resolve();
29 } else {
30 i.reject();
31 }
32 // document.head.removeChild(node);
33 // node = null;
34 }
35
36 node.src = url;
37

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
rejectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…