Mercurial > hg > webaudioevaluationtool
comparison ape.js @ 205:06b253e9b394
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 | b0d683510881 |
children | 538322113524 |
comparison
equal
deleted
inserted
replaced
199:30b9d9538cb7 | 205:06b253e9b394 |
---|---|
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 |