# HG changeset patch # User Nicholas Jillings # Date 1435246671 -3600 # Node ID 6b72d1c5a5c4f3b9fa23b1c34f21d765a3b6ce63 # Parent f42e3d4a565fc943d02f228c699433f7161e1873 Bug #1303 fixed. New function on page creation to destroy old commentQuestion objects. diff -r f42e3d4a565f -r 6b72d1c5a5c4 ape.js --- a/ape.js Sat Jun 20 16:57:06 2015 +0100 +++ b/ape.js Thu Jun 25 16:37:51 2015 +0100 @@ -360,6 +360,7 @@ // Delete any previous audioObjects associated with the audioEngine audioEngineContext.audioObjects = []; interfaceContext.deleteCommentBoxes(); + interfaceContext.deleteCommentQuestions(); // Find all the audioElements from the audioHolder $(audioHolderObject.audioElements).each(function(index,element){ diff -r f42e3d4a565f -r 6b72d1c5a5c4 core.js --- a/core.js Sat Jun 20 16:57:06 2015 +0100 +++ b/core.js Thu Jun 25 16:37:51 2015 +0100 @@ -1839,7 +1839,7 @@ this.deleteCommentBoxes = function() { this.commentBoxes = []; - } + }; this.createCommentQuestion = function(element) { var node; @@ -1854,6 +1854,11 @@ return node; }; + this.deleteCommentQuestions = function() + { + this.commentQuestions = []; + }; + this.playhead = new function() { this.object = document.createElement('div');