diff options
-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; |