Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1347] API reference is missing controller properties and methods

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/salloy 1.7.31
Fix Version/sn/a
ComponentsDocumentation
Labelsn/a
ReporterFokke Zandbergen
AssigneeBruce Wayne
Created2016-01-06T16:02:46.000+0000
Updated2017-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

Comments

  1. Creative 2017-03-07

    +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

JSON Source