mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
js: When removing the status bar, null out its variable
It seems polite to allow it to be garbage-collected.
This commit is contained in:
@ -536,6 +536,7 @@ mergeInto(LibraryManager.library, {
|
||||
js_canvas_remove_statusbar: function() {
|
||||
if (statusbar !== null)
|
||||
statusbar.parentNode.removeChild(statusbar);
|
||||
statusbar = null;
|
||||
},
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user