mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 23:58:12 -05:00
Fixed an issue with JSON data in packed scripts. (Bug #1298)
This commit is contained in:
@@ -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" )
|
||||
|
||||
Reference in New Issue
Block a user