[ALOY-1347] API reference is missing controller properties and methods
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | alloy 1.7.31 |
| Fix Version/s | n/a |
| Components | Documentation |
| Labels | n/a |
| Reporter | Fokke Zandbergen |
| Assignee | Bruce Wayne |
| Created | 2016-01-06T16:02:46.000+0000 |
| Updated | 2017-03-07T15:53:30.000+0000 |
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:
*
args, available since Alloy 1.6.0 to get the controller *arguments\[0\] || {}*
* $, probably in the description as it is private reference to this.
* exports, same as above, although I prefer to use $ only.
* __views, probably in the description as it should not be used directly but via $
And methods:
* trigger, on, off and other methods inherited from BackBone.Events
+1 using *$.args* is valid strict javascript in comparison to *var args = arguments[0] || {};*. It should be documented and enforced. Also *exports.myFunc* vs *$.myFunc* is ambiguous, and one of them should be documented and enforced