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

Function restoreScript

2.1.1/src/manipulation.js:65–75  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

63 return elem;
64}
65function restoreScript( elem ) {
66 var match = rscriptTypeMasked.exec( elem.type );
67
68 if ( match ) {
69 elem.type = match[ 1 ];
70 } else {
71 elem.removeAttribute("type");
72 }
73
74 return elem;
75}
76
77// Mark scripts as having already been evaluated
78function setGlobalEval( elems, refElements ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected