-
Notifications
You must be signed in to change notification settings - Fork 690
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
add support HTML5-History-API polyfill #109
Conversation
Really useful pull request, it adds old browsers(IEs) support with only one new line of code ! |
So by merging this pull request in, you simply load in pagesjs + history API polyfill and pagejs can officially support IE8 and 9? It would be useful to have some clarification and potentially add some documentation to this pull request about what the end user will need to do in order to have x-browser code operational without reigning in a new abundance of issues Also +1 this is awesome |
yep, I think the PR is very good, but I need some more time to plan next release. I favorited the PR for merge it some time later :) |
Heard, let's not wait too long :) I had to abandon usage of pagejs for Sammyjs instead in order to support IE8. Looking forward to getting back to Pagejs as it is much less opinionated and invasive |
How to use a HTML5-History-API Polyfill together with router (OPTIONAL):Before calling
|
@devote mb add this guide to |
we need to fix the test system so that the tests pass first... |
Add a first line? var window = typeof window !== "undefined" ? window : this; |
well it's weird because in node, thinking of just switching over to phantomjs since it's an actual browser environment |
Any ideas? |
Hmmm ... Again, not passed |
Was successful test earlier? He stumbles on all that is possible. |
This reverts commit cc4feea.
Tests did not pass. And as I understand it, they never pass. |
It's hacky but you can also use mocha-browser https://github.com/lepture/mocha-browser that might be a quick solution to get tests passing w/ a browser environment |
Not sure if this is what is causing the failed build but we've had similiar issues with ;(function (context) {
// ... code that sticks something on the global context ...
// ex.
// context.MyGlobalClass
})(typeof global === 'undefined' ? window : global); Important part is to default to |
0 passing (375ms)
1 failing
1) "before all" hook:
TypeError: Object #<Object> has no method 'addEventListener'
at Function.page.start (/home/travis/build/visionmedia/page.js/index.js:121:41)
at page (/home/travis/build/visionmedia/page.js/index.js:80:12) These errors are quite different https://travis-ci.org/visionmedia/page.js/builds/29408064 |
oh dude your code was fine before. it's a matter of fixing the test system, not your tests. |
You mean the very first commit? |
what happened with this? |
I fixed tests |
No description provided.