[TIMOB-2654] Android: HTTPClient Events Do Not Provide Event Source
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M03 |
Components | Android |
Labels | android, defect, enterprise, release-1.6.0, reported-1.5.1, rplist |
Reporter | Don Thorp |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:26:01.000+0000 |
Updated | 2011-04-17T01:59:43.000+0000 |
Description
See http://developer.appcelerator.com/helpdesk/view/62281">Helpdesk
Basically,
xhr.onload = function(e)
{
Ti.API.error("Received request for property: "+ e.source.someProperty);
};
e.source
is undefined
(from [907b19d1aff9dcdd2468df1af9a5ae64ba335918]) [#2654 state:fixed-in-qa][#1058 state:fixed-in-qa] update HttpClient to support app wide HttpClient instance
Modified TiHTTPClient to be a static member so that the client values such as cookies will live over multiple requests. Also modifed the credentials to now pay attention to the url scope they are assigned to and not used globally. Made an additional change to set the source property for HttpClient callbacks.
https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9dcdd2468df1af9a5ae64ba335918"> https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9...
verified on Nexus S / 2.3.2