Fixed an issue with JSON data in packed scripts. (Bug #1298)

This commit is contained in:
John Resig 2007-06-16 22:19:17 +00:00
parent 4b8c7d8561
commit 03c623c35f

View file

@ -785,7 +785,7 @@ jQuery.extend({
// Get the JavaScript object, if JSON is used. // Get the JavaScript object, if JSON is used.
if ( type == "json" ) if ( type == "json" )
eval( "data = " + data ); data = eval("(" + data + ")");
// evaluate scripts within html // evaluate scripts within html
if ( type == "html" ) if ( type == "html" )