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

delete nesnes #1

Open
ghost opened this issue Apr 9, 2016 · 2 comments
Open

delete nesnes #1

ghost opened this issue Apr 9, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 9, 2016

hi, is there a way to destroy nesnes machine?
For example if its open inside a lightbox and we close the instance it keeps running.

Stop is not an option because the lightbox gets generated dynamically and this means we need to reasign the canvas.

thx for help and cool project

@koenkivits
Copy link
Owner

Hi!

Thanks for filing an issue! Sorry for my late reply.
I'm not quite sure what you mean. Do you maybe have an online demo which shows the behavior you don't want? Thanks in advance!

@ghost
Copy link
Author

ghost commented Apr 27, 2016

No problem, no sorry no demo right now.... I try to explain it in detail.
I have a single page ember app where not page reoloads happen. When a user klicks a button a lightbox opens and the nesnes gets allocated. Now the user closes the lightbox. Nesnes still runs in background. Now the user reopens the lightbox and a new instance is created. Now i have 2 options (what i see for now)

  1. Ignore it and create a new instance every time.
  2. On lightbox close destroy canvas and set all nesnes properties (cpu etc) to null

Both doesnt feel realy good. It will be perfect if somesting like destroy nesnes instance will exist. Then i can use this method on lightbox close.

Thx for your support

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