{ "id": "64077", "key": "TIMOB-3445", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-11-02T12:37:21.000+0000", "created": "2011-04-15T03:45:15.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "button", "defect", "ios", "reported-1.7.0", "undefined" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-14T22:03:50.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}

Steps to Reproduce:
\n1. Run Kitchen Sink on Device
\n2. Run Base UI > Window Constructor
\n3. Click Open a New Window
\n4. In the new Window Click \"One\" and \"Two\" about 5-10 times\ndismissing the dialog each time

\n

Actual Result:
\nIntermittently you will see \"You clicked undefined\" (see attached\nimage)

\n

Expected Result:
\nTo always return the clicked value

\n

Tested with Titanium SDK version: 1.7.0 (03/23/11 09:50\n87caf1e...) on
\niPhone 4 4.3

\n

Note:
\nAlso happens on
\nControls > Button Bar
\nControls > Tabbed bar

{html}", "attachment": [ { "id": "18322", "filename": "screenshot-20110325-105800.png", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:45:16.000+0000", "size": 174749, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Button bar displays \"You clicked undefined\" intermittently ", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "400254", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Testing using the following code, it works as expected in recent SDK-versions (5.5.x, 6.x):\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar bb1 = Ti.UI.createButtonBar({\r\n labels: ['One', 'Two', 'Three'],\r\n backgroundColor: '#336699',\r\n top: 50,\r\n style: Ti.UI.iOS.SystemButtonStyle.BAR,\r\n height: 25,\r\n width: 200\r\n});\r\n\r\nbb1.addEventListener(\"click\", function(e) {\r\n alert(e.index);\r\n});\r\n\r\nwin.add(bb1);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-02T12:37:21.000+0000", "updated": "2016-11-02T12:37:21.000+0000" }, { "id": "412372", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T22:03:50.000+0000", "updated": "2017-03-14T22:03:50.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }