Plato on Github
Report Home
src/core/DOMEval.js
Maintainability
76.71
Lines of code
16
Difficulty
6.50
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
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; } );