Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 3104:7820ce4a96c0
Race condition on saves when no pre-test
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 18 Jan 2018 17:15:52 +0000 |
parents | 972b55d81c1b |
children | 171706465aa9 |
comparison
equal
deleted
inserted
replaced
3103:d79b9939b19e | 3104:7820ce4a96c0 |
---|---|
3933 }); | 3933 }); |
3934 } | 3934 } |
3935 }, | 3935 }, |
3936 "update": { | 3936 "update": { |
3937 "value": function () { | 3937 "value": function () { |
3938 if (this.key === null || requestChains === undefined) { | 3938 if (requestChains === undefined) { |
3939 throw ("Cannot save as key == null"); | 3939 throw ("Initiate key exchange first"); |
3940 } | 3940 } |
3941 this.parent.root.setAttribute("state", "update"); | 3941 this.parent.root.setAttribute("state", "update"); |
3942 requestChains = requestChains.then(postUpdate); | 3942 requestChains = requestChains.then(postUpdate); |
3943 } | 3943 } |
3944 }, | 3944 }, |