comparison ape.js @ 1029:5a1313f44e93

Fixed bug where element comments disabled caused crash on page saving.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 12 Jun 2015 12:01:14 +0100
parents 4e9ab4f92f20
children ab79d76c6f85
comparison
equal deleted inserted replaced
1028:aca24f269c56 1029:5a1313f44e93
269 269
270 // Now load each audio sample. First create the new track by passing the full URL 270 // Now load each audio sample. First create the new track by passing the full URL
271 var trackURL = audioHolderObject.hostURL + element.url; 271 var trackURL = audioHolderObject.hostURL + element.url;
272 var audioObject = audioEngineContext.newTrack(element); 272 var audioObject = audioEngineContext.newTrack(element);
273 273
274 if (commentShow) { 274 var node = interfaceContext.createCommentBox(audioObject);
275 var node = interfaceContext.createCommentBox(audioObject);
276 }
277 275
278 // Create a slider per track 276 // Create a slider per track
279 audioObject.interfaceDOM = new sliderObject(audioObject); 277 audioObject.interfaceDOM = new sliderObject(audioObject);
280 278
281 // Distribute it randomnly 279 // Distribute it randomnly