Skip to content

Conversation

@minrwhite
Copy link

Unit test to demonstrate problem for flatiron#229

…y quickly after first router initialisation.
@minrwhite
Copy link
Author

Additionally when testing in my use case scenario - if the document had not entered the 'complete' readystate before the router init() method had been called, the onDOMReady function was never called because the wrong event name for the addEventListener function had been used. See latest commit for the fix.

Unfortunately it is difficult if not impossible to test the event handlers are successfully being subscribed owing to the fact that the html5 harness document fully loads before kicking off the unit tests.

staeke added a commit that referenced this pull request Jun 26, 2014
Unit test to demonstrate onpopstate failure when navigating very quickly
@staeke staeke merged commit e539c71 into staeke:master Jun 26, 2014
@staeke
Copy link
Owner

staeke commented Jun 26, 2014

Thanks @benwhite-deltas

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

Successfully merging this pull request may close these issues.

2 participants