summaryrefslogtreecommitdiff
path: root/www/js/musicgrid.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/musicgrid.js')
-rw-r--r--www/js/musicgrid.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/musicgrid.js b/www/js/musicgrid.js
index d95fb1e..bd219ff 100644
--- a/www/js/musicgrid.js
+++ b/www/js/musicgrid.js
@@ -38,7 +38,9 @@ function musicgrid_init() {
function musicgrid_cleanup() {
musicpoolModal = null;
- musicgridView.clean();
+ if (musicgridView) {
+ musicgridView.clean();
+ }
musicgridView = null;
}