changeset 1570:7ee505b380b0

Fix for Bug #1280
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 16 Jun 2015 14:38:47 +0100
parents 16707c08b0eb
children 1ad963eb0037 78364034203a
files ape.js core.js
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ape.js	Tue Jun 16 14:34:50 2015 +0100
+++ b/ape.js	Tue Jun 16 14:38:47 2015 +0100
@@ -245,6 +245,7 @@
 	
 	// Delete any previous audioObjects associated with the audioEngine
 	audioEngineContext.audioObjects = [];
+	interfaceContext.deleteCommentBoxes();
 	
 	// Find all the audioElements from the audioHolder
 	$(audioHolderObject.audioElements).each(function(index,element){
--- a/core.js	Tue Jun 16 14:34:50 2015 +0100
+++ b/core.js	Tue Jun 16 14:38:47 2015 +0100
@@ -1680,6 +1680,10 @@
 		}
 	};
 	
+	this.deleteCommentBoxes = function() {
+		this.commentBoxes = [];
+	}
+	
 	this.createCommentQuestion = function(element) {
 		var node;
 		if (element.type == 'text') {