{ "id": "155309", "key": "TIMOB-20580", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-07T14:46:08.000+0000", "created": "2016-03-03T07:15:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "children", "parent", "qe-5.4.0", "windowsphone" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-29T23:01:53.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Hi,\r\non windowsphone children views can't address parent view function\r\nWorks fine on android and ios\r\ndefined as null on windowsphone", "attachment": [], "flagged": false, "summary": "Windows: can't address to parent on windows phone", "creator": { "name": "elberto", "key": "elberto", "displayName": "bertelle", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "elberto", "key": "elberto", "displayName": "bertelle", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "windowsphone", "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "379313", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nThanks for your report. Please provide your full working environment details like SDK, CLI version etc. Also attach a simple test case and steps to reproduce this issue.\r\n\r\nRegards.", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-09T09:29:29.000+0000", "updated": "2016-03-09T09:29:29.000+0000" }, { "id": "379777", "author": { "name": "elberto", "key": "elberto", "displayName": "bertelle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{color:#14892c}/*example code*/{color}\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({ \r\n title:'test', backgroundColor:'#fff'\r\n});\r\nview=Ti.UI.createView({\r\n\tbackgroundColor:'green',\r\n\twidth:'100%',\r\n\theight:'100%'\r\n});\r\nview.add(Ti.UI.createButton({\r\n\ttitle:'color change',\r\n}));\r\nview.children[0].addEventListener('click',function(){\r\n\tthis.parent.setBackgroundColor('red');\r\n});\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n{color:#14892c}/*end example code*/{color}\r\n\r\n{color:red}[ERROR] : Application Error: \"Runtime Error during click event: undefined is not an object (evaluating 'this.parent.setBackgroundColor')\"{color}\r\n{code}\r\nHost OS: Windows 8\r\nOS Version: 6.2\r\nOS Arch: x86\r\nJRE Version: 1.7.0_80\r\nJRE Vendor: Oracle Corporation\r\nJRE Home: C:\\Program Files (x86)\\Java\\jdk1.7.0_80\\jre\r\nAppcelerator Studio Version: 4.5.0.201602170821\r\nSelected Titanium SDK: 5.2.0.GA\r\nLatest Titanium SDK: 5.2.0.GA\r\nTitanium SDK Version: 5.2.0.GA\r\nSDK Modules API Version:2\r\nAppcelerator Command-Line Interface, version 5.2.0\r\nNode.JS Version: v0.12.7\r\nNPM Version: 2.11.3\r\nAppcelerator CLI core version : 5.2.0\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-15T20:04:56.000+0000", "updated": "2016-03-21T13:05:48.000+0000" }, { "id": "380247", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Unless I'm mistaken, there is no \"parent\" property for views. I see no 'parent' property listed for Ti.UI.Button or Ti.UI.View: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Button\r\n\r\nDoes this work on other platforms?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-21T14:13:37.000+0000", "updated": "2016-03-21T14:13:37.000+0000" }, { "id": "381175", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~jnaher] Can you try and reproduce on Android/iOS? I don't think a \"parent\" property exists on any platform (at least not in the docs).", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-31T12:46:28.000+0000", "updated": "2016-03-31T12:46:28.000+0000" }, { "id": "381186", "author": { "name": "elberto", "key": "elberto", "displayName": "bertelle", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As said above, example code works fine on iOS and Android. I have already tried it on real devices.", "updateAuthor": { "name": "elberto", "key": "elberto", "displayName": "bertelle", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-31T14:47:22.000+0000", "updated": "2016-03-31T14:47:22.000+0000" }, { "id": "381698", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/608", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-05T06:27:17.000+0000", "updated": "2016-04-05T06:27:17.000+0000" }, { "id": "389483", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, test code no longer throws an error, and color change button correctly affects the backgroundColor of the parent.\r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.7.0.201606220541\r\nTi SDK: 5.4.0.v20160627224205\r\nAppc NPM: 4.2.7-2\r\nAppc Core: 5.4.0-20\r\nNode: v4.4.4\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-29T23:01:46.000+0000", "updated": "2016-06-29T23:01:46.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }