{ "id": "167226", "key": "TIMOB-24612", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [], "resolution": null, "resolutiondate": null, "created": "2017-04-21T01:12:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "hyperloop-windows" ], "versions": [ { "id": "19101", "name": "Hyperloop 2.1.0", "archived": false, "released": true, "releaseDate": "2017-04-28" } ], "issuelinks": [ { "id": "54745", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "167185", "key": "TIMOB-24595", "fields": { "summary": "Windows: Hyperloop addEventListener doesn't work", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-29T13:54:27.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Currently we've been using Titanium-like {{addEventListener}} to handle native event, but we might want to use more \"native-like\" syntax for it.\r\n\r\n{code:title=C++/CX}\r\nclick_event_ = component->Tapped += ref new TappedEventHandler([this, ctx](Platform::Object^ sender, TappedRoutedEventArgs^ e) {\r\n // do something\r\n});\r\n{code}\r\n\r\n*BEFORE*\r\n\r\n{code:title=Hyperloop JavaScript}\r\ncomponent.addEventListener('Tapped', function(e) {\r\n // do something\r\n});\r\n{code}\r\n\r\n*AFTER*\r\n\r\n{code}\r\ncomponent.Tapped += new TappedEventHandler(function(e) {\r\n // do something\r\n})\r\n{code}\r\n\r\nWe might want to use {{+=}} just like native code does instead of {{=}}, because it clearly indicates we are \"adding\" something.\r\n", "attachment": [], "flagged": false, "summary": "Windows: Native-like event handling syntax for Hyperloop", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }