diff options
author | jaubourg <j@ubourg.net> | 2011-01-29 01:39:22 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-01-29 01:39:22 +0100 |
commit | 85a195c6d5ad6fccf9dd3df40ebecc338325d461 (patch) | |
tree | d201d7e63bf2c80e725e86e3a6eb529ddbe6c6ff /src | |
parent | b9f2131a9da53fff60549e87428a0efe43f9e80a (diff) | |
download | jquery-85a195c6d5ad6fccf9dd3df40ebecc338325d461.tar.gz jquery-85a195c6d5ad6fccf9dd3df40ebecc338325d461.zip |
Fixes #8082. Text to script converter now returns text. Unit test added.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax/script.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ajax/script.js b/src/ajax/script.js index dfee86712..91c84d6f4 100644 --- a/src/ajax/script.js +++ b/src/ajax/script.js @@ -9,7 +9,10 @@ jQuery.ajaxSetup({ script: /javascript/ }, converters: { - "text script": jQuery.globalEval + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } } }); |