From 03c623c35f429ce29e927b457ff0a45d8d643f2e Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 16 Jun 2007 22:19:17 +0000 Subject: [PATCH] Fixed an issue with JSON data in packed scripts. (Bug #1298) --- src/ajax/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 102c7f9..4fb63c0 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -785,7 +785,7 @@ jQuery.extend({ // Get the JavaScript object, if JSON is used. if ( type == "json" ) - eval( "data = " + data ); + data = eval("(" + data + ")"); // evaluate scripts within html if ( type == "html" ) -- 1.7.10.4