Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1106] Array returned by Controller.getViews() doesn't have length

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.0, Alloy 1.4.1
Fix Version/sn/a
ComponentsDocumentation, Titanium SDK
Labelsn/a
ReporterThomas Wilkinson
AssigneeUnknown
Created2014-08-03T22:46:45.000+0000
Updated2018-03-07T22:25:57.000+0000

Description

Controller.getViews(), the documentation says it returns an Array, so I expected it to have a length property, it doesn't. It's really a hash of id's to views. Please fix either the documentation or the method so they agree. Controller.getTopLevelViews(), is documented the same way, but the return value actually behaves like an array. You can drop the attached files into a fresh project to see how they behave.

Attachments

FileDateSize
index.js2014-08-03T22:46:45.000+0000514
index.xml2014-08-03T22:46:45.000+0000357

Comments

No comments

JSON Source