{ "id": "113473", "key": "ALOY-645", "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": "15816", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-01-21T19:33:22.000+0000", "created": "2013-04-28T00:38:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "Alloy" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-28T23:55:22.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": "As discussed here: http://developer.appcelerator.com/question/151438/coffeescript-with...\r\n\r\nusing\r\n\r\n<... onClick=\"nested.object\">\r\n\r\nthrows errors because the generated code includes\r\n\r\n$.nested.object ? ...\r\n\r\nand this is defined above the user's controller!\r\n\r\nyou should use something like like this:\r\n\r\n_.get('nested.object')\r\n\r\nwhich is available https://npmjs.org/package/underscore.nested\r\n", "attachment": [], "flagged": false, "summary": "onClick=\"nested.object.here\" throws errors in Alloy", "creator": { "name": "braco", "key": "braco", "displayName": "Braco", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "289094", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The following code works just fine, and works exactly the same if you prefix the event handler name and function declaration with {{exports}} as well:\r\n\r\nh3. index.xml\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nh3. index.js\r\n{code:javascript}\r\nvar nested = {\r\n doClick: function(e) {\r\n alert($.label.text);\r\n }\r\n};\r\n\r\n$.index.open();\r\n{code}\r\n\r\nThere are no inherent errors with using namespaces as event handlers from your views. Alloy does not officially support coffeescript and the code generation and handling won't be changed to support it at the potential expense of stability of existing code written in pure JS.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T19:33:22.000+0000", "updated": "2014-01-21T19:33:22.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }