{ "id": "135993", "key": "ALOY-1125", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2014-09-26T14:53:16.000+0000", "created": "2014-09-02T17:30:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "button", "click", "tableview", "tableviewsection" ], "versions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" }, { "id": "16389", "name": "Alloy 1.4.1", "archived": false, "released": true, "releaseDate": "2014-07-28" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-09-26T14:53:16.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "Click event doesn't trigger correctly. After few (~3) clicks the event is not triggered at all. Button basically behave as it was without any event listener.\r\n\r\nPlease look at it ASAP.\r\n\r\nindex.js (only)\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar table = Ti.UI.createTableView();\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\tselectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle: \"Press!\",\r\n\twidth: 50, height: 50,\r\n\tbackgroundColor: \"red\",\r\n\tright: 25\r\n});\r\n\r\nvar section = Ti.UI.createTableViewSection({\r\n\trows: [row]\r\n});\r\n\r\nbutton.addEventListener(\"click\", function(e) {\r\n\tconsole.log(e);\r\n});\r\n\r\nrow.add(button);\r\ntable.setData([section]);\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "51341", "filename": "app.js.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-17T17:44:30.000+0000", "size": 431, "mimeType": "application/zip" }, { "id": "51345", "filename": "app.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-17T18:12:55.000+0000", "size": 6055915, "mimeType": "application/zip" } ], "flagged": false, "summary": "Alloy: Button - Click event doesn't trigger", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "Alloy 1.4, Ti 3.3.0, iOS Simulator", "closedSprints": [ { "id": 217, "state": "closed", "name": "2014 Sprint 19 Alloy", "startDate": "2014-09-15T12:45:43.956Z", "endDate": "2014-09-29T12:45:00.000Z", "completeDate": "2014-09-29T13:30:39.342Z", "originBoardId": 124 }, { "id": 206, "state": "closed", "name": "2014 Sprint 18 Alloy", "startDate": "2014-09-02T13:23:09.065Z", "endDate": "2014-09-16T13:23:00.000Z", "completeDate": "2014-09-15T12:25:31.379Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "321482", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nYour test case is more like a normal project code, not a Alloy project.\r\nWould you please try to write your code like this,\r\n{code:title=index.xml}\r\n\r\n\t\r\n\t\t\r\n \r\n\t\t\t \r\n\t\t\t\t