{ "id": "61352", "key": "TIMOB-720", "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": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T02:35:06.000+0000", "created": "2011-04-15T02:35:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "kroll" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T05:27:02.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}
from premium ticket:
\nhttp://helpdesk.appcelerator.net/tickets/1768
\nvar myObj = {};
\nmyObj.prop1 = 'foo';
\nmyObj.printValues = function()
\n{
\nTi.API.info('values win1.myObj.prop1 ' + win1.myObj.prop1);
\n
\n}
\nvar win1 = Ti.UI.createWindow({
\nurl: 'win1.js', })
win1.myObj = myObj;
\nwin1.open();
var win = Ti.UI.currentWindow;
\nvar openButton = Ti.UI.createButton({
\ntitle: 'foo Me' });
win.add(openButton);
\nopenButton.addEventListener('click', function(e) {
\nwin.myObj.printValues(); win.myObj.prop1 = 'bar';\nwin.myObj.printValues();
\n});
\nvalue of prop1 remains 'foo'
Dupe of #2392.