Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1550 closed bug (fixed)

Variable named "data" overides global namespace in httpData method

Reported by: janybravo Owned by:
Priority: major Milestone: 1.2
Component: ajax Version: 1.1.4
Keywords: data ajax html Cc: janybravo@…
Blocked by: Blocking:

Description

Hi!

I noticed that "data" variable, which stores loaded html content, owerides global namespace. I think that should't be happening.

httpData: function( r, type ) {

 var ct = r.getResponseHeader("content-type");
 var xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0;
 data = xml ? r.responseXML : r.responseText;

....

At line 2132,

Thank you!!!

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN.

Note: See TracTickets for help on using tickets.