{ "id": "154145", "key": "ALOY-1347", "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": [], "resolution": null, "resolutiondate": null, "created": "2016-01-06T16:02:46.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17627", "name": "alloy 1.7.31", "archived": false, "released": true, "releaseDate": "2016-01-05" } ], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-07T15:53:30.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": "12327", "name": "Documentation" } ], "description": "The API reference for [Alloy.Controller|http://docs.appcelerator.com/platform/latest/#!/api/Alloy.Controller] should have documentation on these missing, but very relevant properties:\r\n\r\n* {{args}}, available since Alloy 1.6.0 to get the controller *arguments\\[0\\] || {}*\r\n* {{$}}, probably in the description as it is private reference to {{this}}.\r\n* {{exports}}, same as above, although I prefer to use {{$}} only.\r\n* {{__views}}, probably in the description as it should not be used directly but via {{$}}\r\n\r\nAnd methods:\r\n\r\n* {{trigger}}, {{on}}, {{off}} and other methods inherited from BackBone.Events", "attachment": [], "flagged": false, "summary": "API reference is missing controller properties and methods", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "409504", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "body": "+1 using *$.args* is valid strict javascript in comparison to *var args = arguments[0] || {};*.\r\n\r\nIt should be documented and enforced. Also *exports.myFunc* vs *$.myFunc* is ambiguous, and one of them should be documented and enforced", "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-03-07T15:53:30.000+0000", "updated": "2017-03-07T15:53:30.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }