aboutsummaryrefslogtreecommitdiff
path: root/emcclib.js
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-11-21 14:59:19 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-11-21 14:59:19 +0000
commit434e6a43cfa58ab88f91236fb9a9e915e644026f (patch)
treefe637722b3d55adecbef357ca06fb39e81f75855 /emcclib.js
parentf7557852b560a5fccf2bec21aa8397114a564e99 (diff)
downloadpuzzles-434e6a43cfa58ab88f91236fb9a9e915e644026f.zip
puzzles-434e6a43cfa58ab88f91236fb9a9e915e644026f.tar.gz
puzzles-434e6a43cfa58ab88f91236fb9a9e915e644026f.tar.bz2
puzzles-434e6a43cfa58ab88f91236fb9a9e915e644026f.tar.xz
js: When removing the status bar, null out its variable
It seems polite to allow it to be garbage-collected.
Diffstat (limited to 'emcclib.js')
-rw-r--r--emcclib.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcclib.js b/emcclib.js
index d2316f1..47963bb 100644
--- a/emcclib.js
+++ b/emcclib.js
@@ -536,6 +536,7 @@ mergeInto(LibraryManager.library, {
js_canvas_remove_statusbar: function() {
if (statusbar !== null)
statusbar.parentNode.removeChild(statusbar);
+ statusbar = null;
},
/*