MCPcopy
hub / github.com/baidu/amis / remove

Function remove

packages/amis-core/src/utils/api.ts:777–788  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775 script.async = true;
776
777 function remove() {
778 if (script) {
779 // @ts-ignore
780 script.onload = script.onreadystatechange = script.onerror = null;
781
782 if (script.parentNode) {
783 script.parentNode.removeChild(script);
784 }
785
786 script = null;
787 }
788 }
789
790 const jsonp = api.query?.callback || 'axiosJsonpCallback' + uuid();
791 const old = (window as any)[jsonp];

Callers 8

jsonpFetcherFunction · 0.85
renderBodyFunction · 0.85
renderBodyFunction · 0.85
deepRemoveFunction · 0.85
handleRemoveMethod · 0.85
handleAddMethod · 0.85
handleRemoveRuleMethod · 0.85
renderValidatonMethod · 0.85

Calls 1

removeChildMethod · 0.80

Tested by

no test coverage detected