Fixes #8082. Text to script converter now returns text. Unit test added.
[jquery.git] / src / ajax / script.js
index dfee867..91c84d6 100644 (file)
@@ -9,7 +9,10 @@ jQuery.ajaxSetup({
                script: /javascript/
        },
        converters: {
-               "text script": jQuery.globalEval
+               "text script": function( text ) {
+                       jQuery.globalEval( text );
+                       return text;
+               }
        }
 });