Writing program scripts with JavaScript
Shutting down a program script
- The optional shutdown function
is called when the script is unloaded
function shutdown ( ) {
. . .
}
- Shutdown occurs when:
- the Script node is deleted
- the browser loads a new world