summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/assets/lib/jquery/src/core/DOMEval.js
blob: c49c12e5e51335a6dd725782c6078499a9eae659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
define( [
	"../var/document"
], function( document ) {
	"use strict";

	function DOMEval( code, doc ) {
		doc = doc || document;

		var script = doc.createElement( "script" );

		script.text = code;
		doc.head.appendChild( script ).parentNode.removeChild( script );
	}

	return DOMEval;
} );