MCPcopy Create free account
hub / github.com/tree-sitter/tree-sitter-javascript / restoreScript

Function restoreScript

examples/jquery.js:4934–4944  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

4932 return elem;
4933}
4934function restoreScript( elem ) {
4935 var match = rscriptTypeMasked.exec( elem.type );
4936
4937 if ( match ) {
4938 elem.type = match[ 1 ];
4939 } else {
4940 elem.removeAttribute("type");
4941 }
4942
4943 return elem;
4944}
4945
4946// Mark scripts as having already been evaluated
4947function setGlobalEval( elems, refElements ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…