From: John Resig Date: Sat, 16 Jun 2007 22:19:17 +0000 (+0000) Subject: Fixed an issue with JSON data in packed scripts. (Bug #1298) X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;ds=sidebyside;h=03c623c35f429ce29e927b457ff0a45d8d643f2e;p=jquery.git Fixed an issue with JSON data in packed scripts. (Bug #1298) --- 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" )