# HG changeset patch # User Nicholas Jillings # Date 1434552837 -3600 # Node ID 950f14a6506e3baba16ab0edb62f4885203f580e # Parent d24124bc76131aea0d6f67c6fb468a5e1388a1c7 Added reference and anchor values to audioHolders in specificationNode. diff -r d24124bc7613 -r 950f14a6506e 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