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

A method to tear down what bonsai.run sets up #87

Closed
iamdustan opened this issue Sep 26, 2012 · 4 comments
Closed

A method to tear down what bonsai.run sets up #87

iamdustan opened this issue Sep 26, 2012 · 4 comments

Comments

@iamdustan
Copy link
Contributor

Is there an equivalent of bonsai.destroy(stage) to tear down everything that bonsai.run(stage, movie) sets up?

I would imagine it would be responsible for removing event handlers, cleaning up the DOM, and generally just destroying all trace of it’s existence.

For long running applications that load up entirely different movies throughout it’s lifespan, I would imagine that there would be some memory issues without being able to do a full clean up.

@pvdz
Copy link

pvdz commented Sep 29, 2012

You could you use movie.destroy(), where movie is the object that bonsai.run returns. Or was that what you meant by bonsai.destroy?

@iamdustan
Copy link
Contributor Author

That is what I meant. Didn’t realize it already existed.

Is that anywhere in the documentation?

@pvdz
Copy link

pvdz commented Sep 29, 2012

Funny you should mention that ;)

uxebu/bonsai-docs#19

@pvdz pvdz closed this as completed Sep 29, 2012
@iamdustan
Copy link
Contributor Author

Haha. Word. That works for me!

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

2 participants