{ "id": "174033", "key": "ALOY-1701", "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": [ { "id": "20873", "name": "CLI Release 7.1.2", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-19T11:30:08.000+0000", "created": "2019-08-20T13:52:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "20836", "name": "Alloy 1.14.0", "archived": false, "released": true, "releaseDate": "2019-07-05" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-11-19T11:30:08.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": [], "description": "h5.Description\r\n\r\nALOY-1646 introduced support for namespacing an xml attribute to restrict a property to a single platform, this does not work for event handlers as they are handled separately to where this is done.\r\n\r\n{code: title=index.xml}\r\n\r\n\t\r\n\t\r\n\r\n{code}\r\n\r\n{code: title=index.js}\r\nfunction doClick(e) {\r\n\tconsole.log('clicky click')\r\n};\r\n\r\n$.index.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the above to your index.xml/index.js files\r\n2. Build to Android\r\n\r\nh5.Actual\r\n\r\nNo event listener is attached\r\n\r\nh5.Expected\r\n\r\nEvent listener should be attached", "attachment": [], "flagged": false, "summary": "XML: Unable to use platform namespace restriction on event handlers", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "451800", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR https://github.com/appcelerator/alloy/pull/940", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-10-03T10:01:12.000+0000", "updated": "2019-10-03T10:01:12.000+0000" }, { "id": "452778", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in CLI Version {{\"NPM\":\"4.2.15-1\",\"CLI\":\"7.1.2-7\"}}. Tested using the instructions mentioned above. \r\n\r\n*Test Environment*\r\n{code:java}\r\nMacOS Catalina 10.15.1 beta\r\nXcode 11 \r\nNode.js 10.16.3\r\nPixel XL 7.1.1 Sim\r\n\"NPM\":\"4.2.15-1\",\"CLI\":\"7.1.2-7\"\r\nSDK Version 8.3.0.v20191114073239\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-19T11:29:12.000+0000", "updated": "2019-11-19T11:29:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }