Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2429] Android: bug while setting dynamic object properties from inside a listener

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-07-06T13:07:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterEtienne Bernard
AssigneeReggie Seagraves
Created2011-04-15T03:19:30.000+0000
Updated2017-03-09T23:14:21.000+0000

Description

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

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

with Android 1.6 emulator.

If I run the following code:

var o = {};
var k = 'key';
var v = 'value';
o[k] = v;
Ti.API.debug(o);

I get:

{"key":"value"}

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

{"key":null}

There is no such problem with the 1.4 version.

Comments

  1. Etienne Bernard 2011-04-15

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

  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source