diff options
author | jeresig <jeresig@gmail.com> | 2010-03-23 12:12:16 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-03-23 12:12:16 -0400 |
commit | 8effe3a7dee91c833cc1774646da9d743600c64c (patch) | |
tree | 1d8c9b10b5a7431ffb9c5c70cf4654e7c98d9438 /src/manipulation.js | |
parent | ba8938d444b9a49bdfb27213826ba108145c2e50 (diff) | |
download | jquery-8effe3a7dee91c833cc1774646da9d743600c64c.tar.gz jquery-8effe3a7dee91c833cc1774646da9d743600c64c.zip |
Made it so that you no longer need to build jQuery in order to run the test suite (but you'll still need a checkout of QUnit and Sizzle, at least).
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index be12aa12b..cb898cc3c 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -584,3 +584,19 @@ jQuery.extend({ } } }); + +function evalScript( i, elem ) { + if ( elem.src ) { + jQuery.ajax({ + url: elem.src, + async: false, + dataType: "script" + }); + } else { + jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); + } + + if ( elem.parentNode ) { + elem.parentNode.removeChild( elem ); + } +}
\ No newline at end of file |