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

If route not exist,it will be error #3

Open
Fov6363 opened this issue Aug 29, 2016 · 0 comments
Open

If route not exist,it will be error #3

Fov6363 opened this issue Aug 29, 2016 · 0 comments

Comments

@Fov6363
Copy link

Fov6363 commented Aug 29, 2016

1.if a uri not exist,but use removeRoute(app,uri),it will remove last routers,so i think you should to
check idx > 0,

   idx = stack.indexOf(route);
    stack.splice(idx, 1);
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

1 participant