MCPcopy Create free account
hub / github.com/components/jquery / DOMEval

Function DOMEval

jquery.js:101–117  ·  view source on GitHub ↗
( code, node, doc )

Source from the content-addressed store, hash-verified

99};
100
101function DOMEval( code, node, doc ) {
102 doc = doc || document$1;
103
104 var i,
105 script = doc.createElement( "script" );
106
107 script.text = code;
108 for ( i in preservedScriptAttributes ) {
109 if ( node && node[ i ] ) {
110 script[ i ] = node[ i ];
111 }
112 }
113
114 if ( doc.head.appendChild( script ).parentNode ) {
115 script.parentNode.removeChild( script );
116 }
117}
118
119var version = "4.0.0",
120

Callers 2

jquery.jsFile · 0.70
domManipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected