jQuery: The Write Less, Do More JavaScript Library

Ticket #1298 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

Packer v3 breaks $.httpData for Json

Reported by: harningt Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.3 Component: ajax
Version: 1.1.2 Keywords:
Cc: Needs: Review

Description

Packer v3 messes with the internal variable names thus making the Json evaluation break.

Suspect code:

if ( type == "json" )
   eval("data = " + data);

Data is renamed when packed, so this doesnt work.

A suggested replacement is this:

if (type == "json")
   return eval(data);

Attachments

Change History

Changed 1 year ago by harningt

Adjustment to that last patch.....

return eval("(" + data + ")");

Changed 1 year ago by john

  • status changed from new to closed
  • version set to 1.1.2
  • resolution set to fixed

Fixed in SVN rev [2092].

Note: See TracTickets for help on using tickets.