canvas.destroy()
directly unless there's a reason a the canvas needs to be destroyed synchronously. By using a timeout, this method ensures the destroy()
will occur after the current thread of execution completes. This allows you to easily mark canvases for destruction while they're handling events, which must complete before the canvas can be destroyed.
|
|