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
router history parameter? #31
Comments
Yeah I think that's right. Though I want to have a simpler API for the common case (in browser) - not sure how we'd do both at the moment... |
isn't that just a question of: var router = plastiq.router; vs... var router = plastiq.router(); ? |
even the browser case probably wants to choose between hash or history, so perhaps: var router = plastiq.router({ history: 'html5' }); |
yeah, perhaps having to create a router isn't so bad, even in the common case |
I've done the behind the scenes work in ae58192, router is now an object. Havne't exposed it as |
API is |
master mocha tests are failing because there is no
window
in the new history abstraction.A router is currently defined like this:
So I was wondering, since both
router
androuter.page
need access to the history abstraction, do you see it as a global thing?This might be better:
wdyt?
The text was updated successfully, but these errors were encountered: