Restarting game on new canvas

Restarting game on new canvas
0.0 0


Hey guys, I have an interesting problem here.

Game canvas for my game is opened in modal window, that can be destroyed and recreated a number of times.

The game plays nicely on the first open, when canvas is created and scripts are loaded. After the canvas gets destroyed and recreated I am calling; however I end up with just black canvas.

Is there a good way to “re-bind” my game back to new canvas?