diff options
author | John Resig <jeresig@gmail.com> | 2007-06-16 22:19:17 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-06-16 22:19:17 +0000 |
commit | 03c623c35f429ce29e927b457ff0a45d8d643f2e (patch) | |
tree | d9fdb08e91df6ea9eca600449bf341ae754ff9d8 /src/ajax/ajax.js | |
parent | 4b8c7d856152df67ddab50327d6da8d68470ec7e (diff) | |
download | jquery-03c623c35f429ce29e927b457ff0a45d8d643f2e.tar.gz jquery-03c623c35f429ce29e927b457ff0a45d8d643f2e.zip |
Fixed an issue with JSON data in packed scripts. (Bug #1298)
Diffstat (limited to 'src/ajax/ajax.js')
-rw-r--r-- | src/ajax/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 102c7f900..4fb63c0fd 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" ) |