{ "id": "141298", "key": "AC-1048", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-04-06T23:34:34.000+0000", "created": "2014-12-09T17:31:24.000+0000", "labels": [ "TCSupportTriage", "addeventlistener", "fireevent" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:23.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Sometimes View.addEventListener doesn't actually add the event listener to the object. Sometimes fireEvent doesn't fire the event, even when the event is added properly. While I'm able to consistently reproduce this error, the circumstances required to reproduce it aren't clear.\r\n\r\nDebugging into addEventListener revealed that when the error occurs, the event is added to the \"listeners\" with a value of 0 instead of 1. When a subsequent fireEvent is called for the same event, hasListeners returns 0, and no event is fired.\r\n\r\nThe events that are failing are being added to a view that is never displayed. It is created with no properties and is only used for the sake of event management. I've also encountered cases when fireEvent fails despite hasListeners returning 1. Debugging into fireEvent revealed that in this case [proxyView interactionEnabled] is returning false. This should not be the case since the view object that the events are being added to and fired from is the same view, property-less view I previously described. I never set view.touchEnabled = false for this view, nor do I ever add this view to anything.\r\n\r\nWhen I can produce an isolated set of code that reproduces the issue, I will add it to this report.", "attachment": [], "flagged": false, "summary": "View.addEventListener doesn't always add an event listener", "creator": { "name": "ranando", "key": "ranando", "displayName": "Ranando Kking", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "ranando", "key": "ranando", "displayName": "Ranando Kking", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS 8.1, SDK 3.4.1, Xcode v6", "comment": { "comments": [ { "id": "335611", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello!\r\n\r\nWe tried a simple event listener over a view, and looks like working. If you find a testcase where we can reproduce this issue, please post it. \r\n\r\nBest Regards", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-12-09T17:52:44.000+0000", "updated": "2014-12-09T17:52:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }