Commit 03c623c3 authored by John Resig's avatar John Resig

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

parent 4b8c7d85
...@@ -785,7 +785,7 @@ jQuery.extend({ ...@@ -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" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment