Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1006] Variables shared with currentWindow are readonly

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:41:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, currentwindow, defect
ReporterKonstantin
AssigneeBlain Hamon
Created2011-04-15T02:41:22.000+0000
Updated2017-03-02T18:41:50.000+0000

Description

Platform 1.3.0 OS MacOSX/WinXP, iPhone emulator 3.1.3, android emulator 2.1

Both platforms are affected. In app.js I have variable "a" shared with other children windows using Titanium.UI.currentWindow method. The problem is I can't modify value of this property in one child window and access this value in other. Different tricks like

var a = {
  b = '';
}


Titanium.UI.currentWindow.a.b = 'Some value';
also don't work. This issue together with bug #1005 makes Titanium on Android unusable, I can't find a way to pass data from one window to another

Comments

  1. Don Thorp 2011-04-15

    Use properties for now when possible. This is a duplicate of #915

  2. Lee Morris 2017-03-02

    Closing as invalid.

JSON Source