MCPcopy
hub / github.com/jquery/jquery / DOMEval

Function DOMEval

dist-module/jquery.module.js:87–103  ·  view source on GitHub ↗
( code, node, doc )

Source from the content-addressed store, hash-verified

85};
86
87function DOMEval( code, node, doc ) {
88 doc = doc || document$1;
89
90 var i,
91 script = doc.createElement( "script" );
92
93 script.text = code;
94 for ( i in preservedScriptAttributes ) {
95 if ( node && node[ i ] ) {
96 script[ i ] = node[ i ];
97 }
98 }
99
100 if ( doc.head.appendChild( script ).parentNode ) {
101 script.parentNode.removeChild( script );
102 }
103}
104
105var version = "4.0.0",
106

Callers 2

jQueryFactoryFunction · 0.70
domManipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected