{ "id": "134096", "key": "ALOY-1106", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-08-03T22:46:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14176", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": false, "released": true, "releaseDate": "2012-12-13" }, { "id": "16389", "name": "Alloy 1.4.1", "archived": false, "released": true, "releaseDate": "2014-07-28" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:25:57.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12327", "name": "Documentation" }, { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "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.\r\n\r\nController.getTopLevelViews(), is documented the same way, but the return value actually behaves like an array.\r\n\r\nYou can drop the attached files into a fresh project to see how they behave.", "attachment": [ { "id": "50205", "filename": "index.js", "author": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-03T22:46:45.000+0000", "size": 514, "mimeType": "application/x-javascript" }, { "id": "50206", "filename": "index.xml", "author": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-03T22:46:45.000+0000", "size": 357, "mimeType": "text/xml" } ], "flagged": false, "summary": "Array returned by Controller.getViews() doesn't have length", "creator": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "environment": "Mac OS, iOS7", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }