aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-01-29 01:39:22 +0100
committerjaubourg <j@ubourg.net>2011-01-29 01:39:22 +0100
commit85a195c6d5ad6fccf9dd3df40ebecc338325d461 (patch)
treed201d7e63bf2c80e725e86e3a6eb529ddbe6c6ff /src
parentb9f2131a9da53fff60549e87428a0efe43f9e80a (diff)
downloadjquery-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.js5
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;
+ }
}
});