{ "id": "63061", "key": "TIMOB-2429", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-07-06T13:07:15.000+0000", "created": "2011-04-15T03:19:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:14:21.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I'm testing with the following Titanium Mobile version (latest,\nas of now):

\n

Titanium SDK version: 1.5.0 (11/25/10 15:09 3b911c3)

\n

with Android 1.6 emulator.

\n

If I run the following code:

\n
\nvar o = {};\nvar k = 'key';\nvar v = 'value';\no[k] = v;\nTi.API.debug(o);\n
\n

I get:

\n
\n{\"key\":\"value\"}\n
\n

However, if I execute the same code block inside a\nlistener, I get:

\n
\n{\"key\":null}\n
\n

There is no such problem with the 1.4 version.

{html}", "attachment": [], "flagged": false, "summary": "Android: bug while setting dynamic object properties from inside a listener", "creator": { "name": "etiennebernard", "key": "etiennebernard", "displayName": "Etienne Bernard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "etiennebernard", "key": "etiennebernard", "displayName": "Etienne Bernard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128433", "author": { "name": "etiennebernard", "key": "etiennebernard", "displayName": "Etienne Bernard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Please ignore this ticket. I messed things up ;-)

{html}", "updateAuthor": { "name": "etiennebernard", "key": "etiennebernard", "displayName": "Etienne Bernard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:31.000+0000", "updated": "2011-04-15T03:19:31.000+0000" }, { "id": "410952", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:14:21.000+0000", "updated": "2017-03-09T23:14:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }