[ALOY-1106] Array returned by Controller.getViews() doesn't have length
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.0.0, Alloy 1.4.1 |
Fix Version/s | n/a |
Components | Documentation, Titanium SDK |
Labels | n/a |
Reporter | Thomas Wilkinson |
Assignee | Unknown |
Created | 2014-08-03T22:46:45.000+0000 |
Updated | 2018-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
File | Date | Size |
index.js | 2014-08-03T22:46:45.000+0000 | 514 |
index.xml | 2014-08-03T22:46:45.000+0000 | 357 |
No comments