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
HD ticket: http://support.appcelerator.com/tickets/APP-865215
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?
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.
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