Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2797] Ti.UI.currentTab is null

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:29:48.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, currenttab, ios, tab
Reportertom quas
AssigneeDon Thorp
Created2011-04-15T03:29:47.000+0000
Updated2017-03-02T21:02:47.000+0000

Description

The Q&A section describes this pretty well.

http://developer.appcelerator.com/question/98501/titaniumuicurrenttab-is-null"> http://developer.appcelerator.com/question/98501/titaniumuicurrentt...

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

Comments

  1. Stephen Tramer 2011-04-15

    Related to #2786.

  2. Blain Hamon 2011-04-15

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

  3. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source