# HG changeset patch # User Nicholas Jillings # Date 1434552837 -3600 # Node ID 716cd1efe64c41353fa8bb7266a2c7de5c31959b # Parent 804813c05761d5e6605b48bbbce25fc64218c236 Added reference and anchor values to audioHolders in specificationNode. diff -r 804813c05761 -r 716cd1efe64c 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