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

missing destroy method (to remove PREVENT_DEFAULT_KEY_CODES for example) #214

Open
jpsarda opened this issue Jun 4, 2013 · 0 comments
Open

Comments

@jpsarda
Copy link

jpsarda commented Jun 4, 2013

When removing a game dynamically (with javascript) from the dom, the keydown events on the document (among others I guess but I didn't check all of them) are not removed. The consequence is for example that the space bar (which is in the list of PREVENT_DEFAULT_KEY_CODES) doesn't work anymore in input fields for example.

We miss a destroy method that would take care fo all events unbind.

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

No branches or pull requests

1 participant