Forging-Titanium icon indicating copy to clipboard operation
Forging-Titanium copied to clipboard

Issue when going in and out of windows

Open mattlanham opened this issue 13 years ago • 3 comments

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);
    }
};

mattlanham avatar Sep 09 '11 12:09 mattlanham

so did this solve all your problems? what other specific difference are in your fork?

aaronksaunders avatar Oct 08 '11 20:10 aaronksaunders

Well i didn't send up a fork for the back functionality... and it seems line 12 is unnecessary...

mattlanham avatar Oct 08 '11 20:10 mattlanham

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.

rcugut avatar Oct 14 '11 17:10 rcugut