# HG changeset patch # User Nicholas Jillings # Date 1434552837 -3600 # Node ID c2f02c60b14f28fd61039b704b31ebba8cd72db4 # Parent e69c08e35d83a43c75fa4d1ef5d7ed40cad9b3ae Added reference and anchor values to audioHolders in specificationNode. diff -r e69c08e35d83 -r c2f02c60b14f core.js --- a/core.js Wed Jun 17 15:42:56 2015 +0100 +++ b/core.js Wed Jun 17 15:53:57 2015 +0100 @@ -1246,8 +1246,10 @@ this.type = child.nodeName; if (this.type == 'check') { this.check = child.getAttribute('name'); + } else if (this.type == 'anchor' || this.type == 'reference') { + this.value = Number(child.textContent); } - } + }; this.options = []; if (commonInterfaceNode != undefined) { var child = commonInterfaceNode.firstElementChild; @@ -1428,6 +1430,38 @@ if (xml.getAttribute('elementComments') == "true") {this.elementComments = true;} else {this.elementComments = false;} + this.anchor = xml.getElementsByTagName('anchor'); + if (this.anchor.length == 0) { + // Find anchor in commonInterface; + for (var i=0; i 20 - 80