summaryrefslogtreecommitdiff
path: root/www/js/jingles.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/jingles.js')
-rw-r--r--www/js/jingles.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/jingles.js b/www/js/jingles.js
index d80dd95..fbc0807 100644
--- a/www/js/jingles.js
+++ b/www/js/jingles.js
@@ -58,6 +58,14 @@ var JingleGroupListView = function(model) {
this.model.fetch('jingle');
};
+JingleGroupListView.prototype.destroy = function() {
+ var self = this;
+ $(this.jingleGroupViews).each(function(index, groupView) {
+ groupView.destroy();
+ });
+ this.jingleGroupViews = [];
+};
+
var JingleGroup = function(groupName, description, lowcart, highcart, normlevel, trimlevel, title) {
if (arguments.length = 1) {
Rivendell.Group.call(this, groupName);