Mercurial > hg > webaudioevaluationtool
comparison core.js @ 916:d564033f1e25
Safari fix for Specification node
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Fri, 05 Jun 2015 11:25:56 +0100 |
parents | 92aea9ab8060 |
children | 9d6803ed2fb8 |
comparison
equal
deleted
inserted
replaced
915:92aea9ab8060 | 916:d564033f1e25 |
---|---|
1024 }; | 1024 }; |
1025 | 1025 |
1026 // On construction: | 1026 // On construction: |
1027 if (Collection.length != 0) { | 1027 if (Collection.length != 0) { |
1028 Collection = Collection[0]; | 1028 Collection = Collection[0]; |
1029 for (var i=0; i<Collection.childElementCount; i++) { | 1029 if (Collection.childElementCount != 0) { |
1030 var child = Collection.children[i]; | 1030 var child = Collection.firstElementChild; |
1031 this.options.push(new this.OptionNode(child)); | 1031 this.options.push(new this.OptionNode(child)); |
1032 while (child.nextElementSibling != null) { | |
1033 child = child.nextElementSibling; | |
1034 this.options.push(new this.OptionNode(child)); | |
1035 } | |
1032 } | 1036 } |
1033 } | 1037 } |
1034 }; | 1038 }; |
1035 | 1039 |
1036 this.metricNode = function(name) { | 1040 this.metricNode = function(name) { |