mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed an issue with JSON data in packed scripts. (Bug #1298)
This commit is contained in:
parent
4b8c7d8561
commit
03c623c35f
@ -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" )
|
||||
|
Loading…
Reference in New Issue
Block a user