diff ape.js @ 2035:667d65aac3d6

Fixed bug where element comments disabled caused crash on page saving.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 12 Jun 2015 12:01:14 +0100
parents 234651a7b306
children ab79d76c6f85
line wrap: on
line diff
--- a/ape.js	Wed Jun 10 10:13:45 2015 +0100
+++ b/ape.js	Fri Jun 12 12:01:14 2015 +0100
@@ -271,9 +271,7 @@
 		var trackURL = audioHolderObject.hostURL + element.url;
 		var audioObject = audioEngineContext.newTrack(element);
 		
-		if (commentShow) {
-			var node = interfaceContext.createCommentBox(audioObject);
-		}
+		var node = interfaceContext.createCommentBox(audioObject);
 		
 		// Create a slider per track
 		audioObject.interfaceDOM = new sliderObject(audioObject);