Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9193] iOS: Windows opened with NavGroup don't fire open or focus events

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-07T11:04:12.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 API
ComponentsiOS
LabelsSupportTeam, api, module_window, qe-testadded, regression
ReporterDavide Cassenti
AssigneeVishal Duggal
Created2012-05-21T08:23:49.000+0000
Updated2012-07-09T14:45:48.000+0000

Description

Problem description

Windows opened with a NavigationGroup don't fire their open or focus events at all. This is regression: was working well with v2.0.1.GA

Steps to reproduce and sample code

Create an app (see following sample) that opens a window with a NavigationGroup; two events should be fired ('focus' and 'open'), but they aren't. app.js
var TheWindow=Ti.UI.createWindow({
                url:'win1.js',
                layout:'vertical',
                navBarHidden:false
              });
var ng=Ti.UI.iPhone.createNavigationGroup({window:TheWindow});
var NavBase = Ti.UI.createWindow();
NavBase.add(ng);
NavBase.open();
win1.js
var win1=Ti.UI.currentWindow;

function OnFocus()
{
  Ti.API.info('focus event');
}

function OnOpen()
{
  Ti.API.info('open event');
}

win1.addEventListener('focus',OnFocus);
win1.addEventListener('open',OnOpen);
Ti.API.info('set simple event listeners successfully');
Expected Result 3 console log lines: set simple event listeners successfully open event focus event Actual Result 1 console log line: set simple event listeners successfully

Comments

  1. Shawn Lipscomb 2012-05-21

    HD ticket: http://support.appcelerator.com/tickets/APP-865215
  2. Shawn Lipscomb 2012-06-08

    This ticket was marked as resolved on June 7th at 2:04pm. On June 8th, I pulled down the last continuous build for the 2.1.0 branch (master) which was datestamped June 7th at 18:02 (2.1.0.v20120607180246). The problem still exists. What's the timing on resolved JIRA bugs vs. continuous builds? Should it have been in that one? If not, how will I know when a continuous build contains a given bug fix?
  3. Shawn Lipscomb 2012-06-11

    Verified fixed in SDK 2.1.0.v20120608174150...using this test code. But my larger app still suffers from this problem. I wil try to present a new testcase.
  4. Michael Pettiford 2012-06-14

    Closing issue Tested with Ti Studio build 2.1.0.201206131907 Ti Mobile SDK 2.1.0.v20120613210250 hash rc8ddb29e OSX Lion 10.7.3 iPhone 4S OS 5.1
  5. Shawn Lipscomb 2012-06-14

JSON Source