MCPcopy Create free account
hub / github.com/JsAaron/jQuery / restoreScript

Function restoreScript

2.1.1/test/other.js:2340–2350  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

2338 return elem;
2339}
2340function restoreScript( elem ) {
2341 var match = rscriptTypeMasked.exec( elem.type );
2342
2343 if ( match ) {
2344 elem.type = match[ 1 ];
2345 } else {
2346 elem.removeAttribute("type");
2347 }
2348
2349 return elem;
2350}
2351
2352// Mark scripts as having already been evaluated
2353function setGlobalEval( elems, refElements ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected