Mercurial > hg > webaudioevaluationtool
comparison interfaces/ABX.js @ 2958:a5da95ad84f9
Fix for #256
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 21 Nov 2017 11:45:54 +0000 |
parents | 03c166698eab |
children | d25e09e3b8fe |
comparison
equal
deleted
inserted
replaced
2957:ca1abc3d8ef6 | 2958:a5da95ad84f9 |
---|---|
391 } | 391 } |
392 element.id += "-X"; | 392 element.id += "-X"; |
393 if (typeof element.name == "string") { | 393 if (typeof element.name == "string") { |
394 element.name += "-X"; | 394 element.name += "-X"; |
395 } | 395 } |
396 page.audioElements.push(element); | 396 |
397 // Create the save place-holder for the 'X' element | 397 // Create the save place-holder for the 'X' element |
398 var root = testState.currentStore.XMLDOM; | 398 var root = testState.currentStore.XMLDOM; |
399 var aeNode = storage.document.createElement('audioelement'); | 399 var aeNode = storage.document.createElement('audioelement'); |
400 aeNode.setAttribute('ref', element.id); | 400 aeNode.setAttribute('ref', element.id); |
401 if (typeof element.name == "string") { | 401 if (typeof element.name == "string") { |
408 root.appendChild(aeNode); | 408 root.appendChild(aeNode); |
409 // Build the 'X' element | 409 // Build the 'X' element |
410 var label; | 410 var label; |
411 var audioObject = audioEngineContext.newTrack(element); | 411 var audioObject = audioEngineContext.newTrack(element); |
412 node = buildElement.call(this, 3, audioObject); | 412 node = buildElement.call(this, 3, audioObject); |
413 audioObject.bindInterface(node); | |
414 this.X = node; | 413 this.X = node; |
415 this.boxHolders.appendChild(node.box); | 414 this.boxHolders.appendChild(node.box); |
416 } | 415 } |
417 | 416 |
418 function resizeWindow(event) { | 417 function resizeWindow(event) { |