Permalink
Browse files

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

  • Loading branch information...
1 parent 4b8c7d8 commit 03c623c35f429ce29e927b457ff0a45d8d643f2e @jeresig jeresig committed Jun 16, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax/ajax.js
View
@@ -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" )

0 comments on commit 03c623c

Please sign in to comment.