{ "id": "111427", "key": "TIMOB-13121", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15277", "description": "2013 Sprint 06 Core", "name": "2013 Sprint 06 Core", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "15715", "description": "2013 Sprint 25", "name": "2013 Sprint 25", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15716", "description": "2013 Sprint 25 API", "name": "2013 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-06T22:12:18.000+0000", "created": "2013-03-19T21:01:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded", "regression", "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T16:29:13.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": "h4. Description\r\n\r\nFirst we have a view inside a table view row. When we add a click event listener to the view in the callback of another click event (from another UI component), clicking the view will cause the event to fire twice.\r\n\r\nh4. Code to Reproduce\r\n\r\nPlease see the attached file.\r\n\r\nh4. Steps to Reproduce\r\n\r\n1. Run app\r\n2. Click \"Approve\" button once\r\n3. Click on blue square once\r\n4. See the console for the output of the click event firing twice\r\n\r\nh4. Additional Notes\r\n\r\nThis issue did not occur in 2.1.4GA.\r\n\r\nThe event does not fire twice if we add the event listener outside of the callback for clicking the \"Approve\" button.\r\n\r\nThe event does not fire twice if we do not add the extra view (the \"view\" variable in the code) to the table row.", "attachment": [ { "id": "36465", "filename": "testcase.js", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T21:01:33.000+0000", "size": 815, "mimeType": "text/javascript" } ], "flagged": false, "summary": "iOS: View click event fires twice when adding the listener in a callback from another event", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 6\r\nTi SDK 3.0.2GA, 3.0.0GA, 3.1.0 (CI build)", "comment": { "comments": [ { "id": "243285", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3996", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T22:34:19.000+0000", "updated": "2013-03-20T22:34:19.000+0000" }, { "id": "250745", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Now the click event is firing once.Verified on below environment:\r\nSDK - 3.1.0.GA\r\nAppcelerator studio - 3.1.1.201305031846\r\nDevice - 6.0 iOS Simulator", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T06:12:46.000+0000", "updated": "2013-05-08T06:12:46.000+0000" }, { "id": "282780", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket. This bug is occurring on:\n\nSDK build: 3.2.0.v20131205152445\nCLI: 3.2.0-beta\nAlloy: 1.3.0-beta\nDevice: iphone 5 (7.0.2), iphone 4s (6.0.1)\n\nAlso, this is a regression from SDK 3.1.3.GA; this does not occur with the GA stack.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T01:23:17.000+0000", "updated": "2013-12-06T01:23:17.000+0000" }, { "id": "282910", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5079\r\n\r\nBackport to 3_2_X\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5082", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T18:12:33.000+0000", "updated": "2013-12-06T18:16:31.000+0000" }, { "id": "282954", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged into master and 3.2.x", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T22:12:18.000+0000", "updated": "2013-12-06T22:12:18.000+0000" }, { "id": "283166", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue on test Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312081316\r\nSDK:3.2.0.v20131208204843\r\nalloy: 1.3.0-beta\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-beta\t\r\ntitanium-code-processor: 1.1.0-beta\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: iphone5(V7.0.4),Google Nexus7(v4.3)\r\n\r\nWorking as expected.View Click event fires only once. \r\nHence closing as working fine.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-09T06:13:04.000+0000", "updated": "2013-12-09T06:13:04.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }