{ "id": "63429", "key": "TIMOB-2797", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:29:48.000+0000", "created": "2011-04-15T03:29:47.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "currenttab", "ios", "tab" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T21:02:47.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

The Q&A section describes this pretty well.

\n

\nhttp://developer.appcelerator.com/question/98501/titaniumuicurrentt...

\n

As James Wright mentioned, it should really be the job of the\nframework to handle this. Espeially, since you propagate the\none-context approach in your documents. I'm running into this very\nproblem today.

{html}", "attachment": [], "flagged": false, "summary": "Ti.UI.currentTab is null", "creator": { "name": "tomquas", "key": "tomquas", "displayName": "tom quas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tomquas", "key": "tomquas", "displayName": "tom quas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129430", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Related to #2786.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:48.000+0000", "updated": "2011-04-15T03:29:48.000+0000" }, { "id": "129431", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

CurrentTab specifies the tab owning the window owning the\ncontext. That is, it's akin to currentWindow. The code sample in\nquestion is in app.js, which is not owned by any window, thus, no\ncurrentWindow, no currentTab.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:48.000+0000", "updated": "2011-04-15T03:29:48.000+0000" }, { "id": "408499", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T21:02:47.000+0000", "updated": "2017-03-02T21:02:47.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }