Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when going in and out of windows #3

Open
mattlanham opened this issue Sep 9, 2011 · 3 comments
Open

Issue when going in and out of windows #3

mattlanham opened this issue Sep 9, 2011 · 3 comments

Comments

@mattlanham
Copy link

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);
    }
};
@aaronksaunders
Copy link

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

@mattlanham
Copy link
Author

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

@rcugut
Copy link

rcugut commented Oct 14, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants