Bug Tracker

Modify

Ticket #1298 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Packer v3 breaks $.httpData for Json

Reported by: harningt Owned by:
Priority: major Milestone: 1.1.3
Component: ajax Version: 1.1.2
Keywords: Cc:
Blocking: Blocked by:

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);

Change History

comment:1 Changed 6 years ago by harningt

Adjustment to that last patch.....

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

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Version set to 1.1.2
  • Resolution set to fixed

Fixed in SVN rev [2092].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.