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

Method onload

packages/utils/src/asset.ts:150–158  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

148
149 const i = createDefer();
150 function onload(e: any) {
151 element.onload = null;
152 element.onerror = null;
153 if (e.type === 'load') {
154 i.resolve();
155 } else {
156 i.reject();
157 }
158 }
159
160 element.href = url;
161 element.rel = 'stylesheet';

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
rejectMethod · 0.80

Tested by

no test coverage detected