diff options
author | PeterTheOne <petertheone@gmail.com> | 2015-09-04 22:56:20 (GMT) |
---|---|---|
committer | PeterTheOne <petertheone@gmail.com> | 2015-09-04 22:56:20 (GMT) |
commit | 97287ca08e0a90dfcbe87a797e219c97b418a16d (patch) | |
tree | 467a7ae8abd0de094333f0795d8f787425d0b453 /www/js | |
parent | 835154c209a03e76b2591527bcdd32e5a6e75110 (diff) |
fix logout bug
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/jingles.js | 10 |
1 files changed, 8 insertions, 2 deletions
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; |