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

listener.js could be removed #33

Open
mattlub opened this issue Mar 31, 2017 · 1 comment
Open

listener.js could be removed #33

mattlub opened this issue Mar 31, 2017 · 1 comment
Labels

Comments

@mattlub
Copy link
Member

mattlub commented Mar 31, 2017

dont really need the initLoadListener function, could just call window.onload... in main.js

any reason why you did it?

@macintoshhelper
Copy link
Collaborator

This was done to make the listeners testable, since a callback is parsed into them. For example: an assert.equals can be put into the callback function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants