Titanium JIRA Archive
Alloy (ALOY)

[ALOY-128] Ti.UI.currentTab undefined in controller

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-07-30T06:34:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsRuntime
Labelsn/a
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2012-07-26T07:51:25.000+0000
Updated2015-07-30T23:53:06.000+0000

Description

From github issue: https://github.com/appcelerator/alloy/issues/29 Another question, I use html code below to implement a TabGroup, and history is another controller, but in history controller, Titanium.UI.currentTab doesn't work, it just be undefined.
<TabGroup>
    <Tab id="tabHistory">
        <View require="history" id="history"></View>
    </Tab>
</TabGroup>

Comments

  1. Russell McMahon 2012-07-26

    I need to investigate. I'm not sure how this works in TI API. There are other ways to get active tabs that do not rely on the static var. Do we know if this is an Alloy issue?
  2. Russell McMahon 2012-07-26

    It's possible this is a context issue Alloy runs and generates single context apps.
  3. Tony Lukasavage 2012-07-30

    Ti.UI.currentTab is no valid in single context applications
  4. Shawn Lan 2015-07-30

    This is not clearly documented. Please add to the documentation.

JSON Source