Skip to main content

Bug Tracker

Side navigation

#1298 closed bug (fixed)

Opened June 15, 2007 08:21PM UTC

Closed June 16, 2007 10:19PM UTC

Last modified June 21, 2007 04:03AM UTC

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:
Blocked by: Blocking:
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 (0)
Change History (2)

Changed June 15, 2007 08:24PM UTC by harningt comment:1

Adjustment to that last patch.....

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

Changed June 16, 2007 10:19PM UTC by john comment:2

resolution: → fixed
status: newclosed
version: → 1.1.2

Fixed in SVN rev [2092].