comparison js/core.js @ 2978:7483f1bae6e1

#262 chaining of update requests
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 12 Jan 2018 13:58:03 +0000
parents cbd65226e069
children d5432dd0924e a169e79ba224
comparison
equal deleted inserted replaced
2977:cbd65226e069 2978:7483f1bae6e1
3777 "value": function () { 3777 "value": function () {
3778 if (this.key == null || requestChains === undefined) { 3778 if (this.key == null || requestChains === undefined) {
3779 throw ("Cannot save as key == null"); 3779 throw ("Cannot save as key == null");
3780 } 3780 }
3781 this.parent.root.setAttribute("state", "update"); 3781 this.parent.root.setAttribute("state", "update");
3782 requestChains = requestChains.then(postUpdate()); 3782 requestChains = requestChains.then(postUpdate);
3783 } 3783 }
3784 }, 3784 },
3785 "finish": { 3785 "finish": {
3786 "value": function () { 3786 "value": function () {
3787 if (this.key == null || requestChains === undefined) { 3787 if (this.key == null || requestChains === undefined) {