Mercurial > hg > webaudioevaluationtool
changeset 2056:019cceb05eec
Bug Fix #1305: AudioHolders have 'presentedid' attribute in save
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 01 Jul 2015 10:21:52 +0100 |
parents | 2d3eda2a9c6f |
children | 416fc71e0374 |
files | core.js |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Wed Jul 01 10:15:06 2015 +0100 +++ b/core.js Wed Jul 01 10:21:52 2015 +0100 @@ -394,11 +394,14 @@ } this.stateIndex = -1; var that = this; + var aH_pId = 0; for (var id=0; id<this.stateMap.length; id++){ var name = this.stateMap[id].type; var obj = document.createElement(name); if (name == 'audioHolder') { obj.id = this.stateMap[id].id; + obj.setAttribute('presentedid',aH_pId); + aH_pId+=1; } this.stateResults.push(obj); }