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

Miscellaneous issues with router.js #1458

Closed
brian-learningpool opened this issue Mar 9, 2017 · 0 comments
Closed

Miscellaneous issues with router.js #1458

brian-learningpool opened this issue Mar 9, 2017 · 0 comments
Assignees

Comments

@brian-learningpool
Copy link
Member

It's been some time since I've looked at router.js but while trying to develop a plugin which would make use of the plugin routing I noticed a few problems:

  • arguments being parsed as args but raw arguments are still passed to functions
  • The code assumes that only the last argument is may be null, this is not necessarily the case
  • Plugin routing via the handlePluginRouter function does not appear to reset the _canNavigate property in the same way the handleId function does
  • _isCircularNavigationInProgress is undefined until it's set, the code is going into the block on line 48-51 when it should not be
@brian-learningpool brian-learningpool self-assigned this Mar 9, 2017
brian-learningpool added a commit that referenced this issue Mar 9, 2017
- arguments were being parsed as args but raw arguments are still passed to functions
- The code assumed that only the last argument is may be null, this is not necessarily the case
- Plugin routing via the handlePluginRouter function did not appear to reset the _canNavigate property in the same way the handleId function does
- Tidied the check on _isCircularNavigationInProgress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant