From 97287ca08e0a90dfcbe87a797e219c97b418a16d Mon Sep 17 00:00:00 2001 From: PeterTheOne Date: Sat, 5 Sep 2015 00:56:20 +0200 Subject: fix logout bug diff --git a/www/js/jingles.js b/www/js/jingles.js index 7e3fb01..be739b4 100644 --- a/www/js/jingles.js +++ b/www/js/jingles.js @@ -30,8 +30,10 @@ function jingles_init() { } function jingles_cleanup() { - jinglesGroupList.destroy(); - jinglesGroupList = null; + if (jinglesGroupList) { + jinglesGroupList.destroy(); + jinglesGroupList = null; + } } var JingleGroupList = function() { @@ -91,6 +93,10 @@ JingleGroupList.prototype.render = function() { }); }; +JingleGroupList.prototype.destroy = function() { + // todo: implement +}; + var JingleGroup = function(title, groupName, description, lowcart, highcart, normlevel, trimlevel) { this.title = title; this.groupName = groupName; -- cgit v0.10.2