{ "id": "63738", "key": "TIMOB-3106", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-26T16:58:21.000+0000", "created": "2011-04-15T03:37:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19289", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T20:02:52.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}

Titanium 1.6, iPhone SDK 4.2
\nDone this 100 times and now it wont work. When i add view1 to\ncontainer, i can't get the var \"backer\" from container.
\nComment out: 'container.add(view1);' and it will work.

\n
\n\nvar win = Ti.UI.currentWindow;\n \n \n// called on view click\nonViewPress = function(e) {\n    alert(e.source.backer + ' : cool');\n};\n \n// initialize container view \nvar container = Ti.UI.createView({\n    width:286,\n    height:327,\n    backgroundColor:'#000'\n \n});\n \n// add container to window\nwin.add(container);\n \n// initialize view1 \nvar view1 = Ti.UI.createView({\n    backgroundColor:'#fff',\n        width:200,\n    height:300\n}); \n \n// add view1 to container\ncontainer.add(view1);\n \ncontainer.backer = 'back';\ncontainer.addEventListener('click', onViewPress);\n
{html}", "attachment": [], "flagged": false, "summary": "Adding a view to a view clears out vars. Weird glitch.", "creator": { "name": "peterlevn", "key": "peterlevn", "displayName": "peterlevn", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "peterlevn", "key": "peterlevn", "displayName": "peterlevn", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130090", "author": { "name": "peterlevn", "key": "peterlevn", "displayName": "peterlevn", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This needs to be addressed.

{html}", "updateAuthor": { "name": "peterlevn", "key": "peterlevn", "displayName": "peterlevn", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:37:10.000+0000", "updated": "2011-04-15T03:37:10.000+0000" }, { "id": "209986", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce described issue, SDK 2.2.0.014b86f, iPhone Sim 5.1", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T16:58:21.000+0000", "updated": "2012-07-26T16:58:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }