Forging-Titanium
Forging-Titanium copied to clipboard
Issue when going in and out of windows
Hi Kevin,
I had to comment out line 12 of NavigationController.js to get things to correctly function across the two platforms, not sure exactly what's going on, but if i went, in, out, in, out it would loose it's place.
Also we created a back function where you don't want to go home, w.close() didn't always work so our function checks the platform see:
//go back one window NavigationController
exports.NavigationController.prototype.back = function(w) {
if(Ti.Platform.osname === 'android') {
w.close();
}else{
this.navGroup.close(w);
}
};
so did this solve all your problems? what other specific difference are in your fork?
Well i didn't send up a fork for the back functionality... and it seems line 12 is unnecessary...
I run into the same problem and I found the issue to be the 'close' event handler on lines 11-13 being registered on each open() than called more than once on close. I fixed it by removing the event handler from the listener, after its execution I made a fork / pull request with a fix that I'm using in my app.