{ "id": "60899", "key": "TIMOB-267", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:32.000+0000", "created": "2011-04-15T02:26:24.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-02T03:10:26.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}

When you do set data with a control instance = crash

\n
\n  <script type=\"text/javascript\">\n    function doSetData() {\n        groupedSection.setData(tempData2);\n    }\n    \n        //Titanium.UI.currentWindow.addEventListener('focused',doSetData);\n        var switchInstance = Titanium.UI.createSwitch({value:true,width:95});\n        var switchInstance2 = Titanium.UI.createSwitch({value:true,width:95});\n        \n        var buttonRefresh = Titanium.UI.createButton({\n            systemButton:Titanium.UI.iPhone.SystemButton.REFRESH\n        });\n        \n        buttonRefresh.addEventListener('click',function() {\n            doSetData();\n        })\n       var tempData2 = [\n            {title:'Item2', input:switchInstance2}\n        ];\n\n        var tempData = [\n            {title:'Item', input:switchInstance}\n        ];\n        \n        \n        var groupedSection = Titanium.UI.iPhone.createGroupedSection({\n            header:'Temp section',\n            type:'input',\n            data:tempData\n        });\n        \n        var groupedView = Titanium.UI.iPhone.createGroupedView();\n        groupedView.addSection(groupedSection);\n        \n        Titanium.UI.currentWindow.addView(groupedView);\n        Titanium.UI.currentWindow.showView(groupedView);\n        Titanium.UI.currentWindow.setRightNavButton(buttonRefresh);\n
{html}", "attachment": [], "flagged": false, "summary": "Set Data on Grouped Section Causes crash", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123036", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've got a hunch on what happened here, but it's all moot with\n1.x and therefore, no longer a crasher.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:26:24.000+0000", "updated": "2011-04-15T02:26:24.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }