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

Stage.destroy() does not remove the window's resize event listeners. #212

Open
lmeurs opened this issue Jun 18, 2013 · 0 comments
Open

Stage.destroy() does not remove the window's resize event listeners. #212

lmeurs opened this issue Jun 18, 2013 · 0 comments

Comments

@lmeurs
Copy link

lmeurs commented Jun 18, 2013

After destroying a Bonsaijs instance and then resizing the window, errors are thrown. Firefox outputs:

TypeError: this.renderer is undefined

...s._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("...

Chrome says:

Uncaught TypeError: Cannot call method 'getOffset' of undefined bonsai.min.js:219
we._sendEnvData bonsai.min.js:219
(anonymous function)

See http://jsfiddle.net/RfsUn/.

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