mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -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() {
|
js_canvas_remove_statusbar: function() {
|
||||||
if (statusbar !== null)
|
if (statusbar !== null)
|
||||||
statusbar.parentNode.removeChild(statusbar);
|
statusbar.parentNode.removeChild(statusbar);
|
||||||
|
statusbar = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user