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

Function DOMEval

dist-module/jquery.factory.slim.module.js:92–108  ·  view source on GitHub ↗
( code, node, doc )

Source from the content-addressed store, hash-verified

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

Callers 2

jQueryFactoryWrapperFunction · 0.70
domManipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected