{ "id": "165179", "key": "TIMOB-24273", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-05T18:35:33.000+0000", "created": "2017-01-04T11:24:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-01-05T23:24:24.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": "*Problem*\r\nOverwrites the click event listeners if there is more than one defined.\r\n\r\nactual behavior\r\n# click in example on the label\r\n# in the log is shown 'click3'\r\n\r\nexpected behavior\r\n# click in example on the label\r\n# in the log is shown 'click1, click2 and click3'\r\n\r\n*Test case*\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({height: Ti.UI.SIZE, width: Ti.UI.SIZE, backgroundColor: \"white\"});\r\nvar label = Ti.UI.createLabel({text: \"label\"});\r\nvar view = Ti.UI.createView({height: Ti.UI.SIZE, width: Ti.UI.SIZE});\r\n\r\nview.add(label);\r\nwin.add(view);\r\nwin.open();\r\n\r\nview.addEventListener('click', function(event){\r\n Ti.API.info('click1');\r\n});\r\nview.addEventListener('click', function(event){\r\n Ti.API.info('click2');\r\n});\r\nview.addEventListener('click', function(event){\r\n Ti.API.info('click3');\r\n});\r\n{code}\r\n\r\n\r\n*Log*\r\nactual behavior\r\n\r\n{noformat}\r\n[INFO] : click3\r\n{noformat}\r\n\r\n\r\nexpected behavior\r\n\r\n{noformat}\r\n[INFO] : click\r\n[INFO] : click2\r\n[INFO] : click3\r\n{noformat}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Overwriting existing event listeners only calls the last one (Regression from 6.0.1)", "creator": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 6.1.0.v20170103224205\r\nJavascript Engine: ?\r\nPlatform & version: iOS, Android (does not startup)\r\nDevice Details: iOS simulator iPhone 5s 10.2\r\nHost Operating System: Mac OS X 10.12.2\r\nTitanium Studio version: 4.8.1.201612050850", "closedSprints": [ { "id": 787, "state": "closed", "name": "2017 Sprint 01 SDK", "startDate": "2016-12-31T02:15:33.446Z", "endDate": "2017-01-14T02:15:00.000Z", "completeDate": "2017-01-15T00:00:19.006Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404104", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, after some investigation, I found out that [this change|https://github.com/appcelerator/titanium_mobile/pull/8659] caused the regression in 6.1.0 master. It works properly in 6.0.1.GA. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-04T22:23:39.000+0000", "updated": "2017-01-05T18:35:49.000+0000" }, { "id": "404152", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/8731", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-01-05T15:13:42.000+0000", "updated": "2017-01-05T15:13:42.000+0000" }, { "id": "404181", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, When clicking on the label the log now shows:\r\n{code:java}\r\n[INFO] : click1\r\n[INFO] : click2\r\n[INFO] : click3\r\n{code}\r\n\r\n*Environment*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.1.0\r\niphone 6 plus (ios 9.3.4)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.1.0.v20170105103604\r\nXcode: 8.2\r\nAppcelerator Studio: 4.8.1.201612050850\r\n{code}\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-05T23:24:02.000+0000", "updated": "2017-01-05T23:24:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }