MCPcopy Create free account
hub / github.com/JsAaron/jQuery / evalScript

Function evalScript

1.2.6/src/core.js:530–543  ·  view source on GitHub ↗
( i, elem )

Source from the content-addressed store, hash-verified

528jQuery.fn.init.prototype = jQuery.fn;
529
530function evalScript( i, elem ) {
531 if ( elem.src )
532 jQuery.ajax({
533 url: elem.src,
534 async: false,
535 dataType: "script"
536 });
537
538 else
539 jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
540
541 if ( elem.parentNode )
542 elem.parentNode.removeChild( elem );
543}
544
545function now(){
546 return +new Date;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected