{ "id": "167833", "key": "ALOY-1564", "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": "19911", "name": "CLI Release 6.2.4", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-17T03:33:23.000+0000", "created": "2017-05-22T12:35:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-08-17T03:34:07.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "When requiring a view with data binding, for instance: \r\n\r\n{code:javascript}\r\n\r\n \r\n{code}\r\n\r\n the following errors is firing:\r\n\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 18;\r\n[ERROR] : line = 40;\r\n[ERROR] : message = \"undefined is not a function (evaluating '__alloyId146.getViewEx({\\n recurse: true\\n }).on(\\\"click\\\", doSomething)')\";\r\n[ERROR] : stack = \"__alloyId148\\ntriggerEvents\\ntrigger\\n_onModelEvent\\ntriggerEvents\\ntrigger\\nset\\nsuccess\\n\\nonload\";\r\n[ERROR] : }\r\n{code}\r\n\r\n\r\ndue to this processed code:\r\n\r\n{code:javascript}\r\n doSomething ? __alloyId146.getViewEx({\r\n recurse: true\r\n }).on(\"click\", doSomething) : __defers[\"__alloyId146.getViewEx({recurse:true})!click! doSomething\"] = true;\r\n{code}\r\n\r\nwhich should be:\r\n\r\n{code:javascript}\r\ndoSomething ? __alloyId146.on(\"click\", doSomething) : __defers[\"__alloyId146!click! doSomething\"] = true;\r\n{code}", "attachment": [], "flagged": false, "summary": "Broken Require data-binding event translation. Custom events on Required views are being applied to the required root View instead of the required Controller itself, causing an error.", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 940, "state": "closed", "name": "2017 Sprint 17 Tooling", "startDate": "2017-08-13T23:08:06.803Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:14:05.511Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "424980", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/840", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-07-27T18:02:35.000+0000", "updated": "2017-07-27T18:02:35.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }