Mercurial > hg > webaudioevaluationtool
changeset 2968:d9121773632d
Minor typos in SessionKey object
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 12 Jan 2018 13:15:21 +0000 |
parents | f82cda734a1e |
children | 6e51b9734eab |
files | js/core.js |
diffstat | 1 files changed, 19 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Fri Jan 12 13:11:49 2018 +0000 +++ b/js/core.js Fri Jan 12 13:15:21 2018 +0000 @@ -3767,25 +3767,29 @@ }); } }, - "update": function () { - if (this.key == null || requestChains === undefined) { - throw ("Cannot save as key == null"); + "update": { + "value": function () { + if (this.key == null || requestChains === undefined) { + throw ("Cannot save as key == null"); + } + this.parent.root.setAttribute("state", "update"); + requestChains = requestChains.then(postUpdate()); } - this.parent.root.setAttribute("state", "update"); - requestChains = requestChains.then(postUpdate()); }, - "finish": function () { - if (this.key == null || requestChains === undefined) { - throw ("Cannot save as key == null"); + "finish": { + "value": function () { + if (this.key == null || requestChains === undefined) { + throw ("Cannot save as key == null"); + } + this.parent.finish(); + requestChains.then(postUpdate()).then(function () { + console.log("OK"); + }, function () { + createProjectSave("local"); + }) } - this.parent.finish(); - requestChains.then(postUpdate()).then(function () { - console.log("OK"); - }, function () { - createProjectSave("local"); - }) } - }) + }); return object; })(this); /*