Apparently the internal _onpopstate method isn't defined in environments where the window object doesn't exist such as test runners or Node.js. This PR adds a simple noop method to make sure it's defined.
I'm not aware of the internals of page.js and not sure if it causes any other side effects. I'm happy for feedback if this is actually a helpful fix.
Coverage remained the same at 89.496% when pulling 05a41c944eb71233723ebe94a224c3c44e23f8e5 on flootr:patch-1 into f48d3f1ca10edc6847fca48c1ccfa74df86b9ef2 on visionmedia:master.
fixes #501
Apparently the internal
_onpopstate
method isn't defined in environments where thewindow
object doesn't exist such as test runners or Node.js. This PR adds a simple noop method to make sure it's defined.I'm not aware of the internals of page.js and not sure if it causes any other side effects. I'm happy for feedback if this is actually a helpful fix.