Mercurial > hg > webaudioevaluationtool
comparison core.js @ 917:9d6803ed2fb8
audioHolder ID's are stored
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Fri, 05 Jun 2015 11:32:09 +0100 |
parents | d564033f1e25 |
children | 1e1339e51701 |
comparison
equal
deleted
inserted
replaced
916:d564033f1e25 | 917:9d6803ed2fb8 |
---|---|
205 this.stateIndex = -1; | 205 this.stateIndex = -1; |
206 var that = this; | 206 var that = this; |
207 for (var id=0; id<this.stateMap.length; id++){ | 207 for (var id=0; id<this.stateMap.length; id++){ |
208 var name = this.stateMap[id].type; | 208 var name = this.stateMap[id].type; |
209 var obj = document.createElement(name); | 209 var obj = document.createElement(name); |
210 if (name == 'audioHolder') { | |
211 obj.id = this.stateMap[id].id; | |
212 } | |
210 this.stateResults.push(obj); | 213 this.stateResults.push(obj); |
211 } | 214 } |
212 } else { | 215 } else { |
213 conolse.log('FATAL - StateMap not correctly constructed. EMPTY_STATE_MAP'); | 216 conolse.log('FATAL - StateMap not correctly constructed. EMPTY_STATE_MAP'); |
214 } | 217 } |