Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1106

Array returned by Controller.getViews() doesn't have length

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.0.0, Alloy 1.4.1
    • Fix Version/s: None
    • Component/s: Documentation, Titanium SDK
    • Labels:
      None
    • Environment:

      Mac OS, iOS7

      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              twilkinson Thomas Wilkinson
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code