comparison js/core.js @ 2970:6cfb6c49c331

#262 Better catcher for returnURL undefined in SessionKey
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 12 Jan 2018 13:18:58 +0000
parents 6e51b9734eab
children d962cce75063
comparison
equal deleted inserted replaced
2969:6e51b9734eab 2970:6cfb6c49c331
3648 this.globalPostTest = new this.surveyNode(this, this.root, specification.postTest); 3648 this.globalPostTest = new this.surveyNode(this, this.root, specification.postTest);
3649 } 3649 }
3650 }; 3650 };
3651 3651
3652 this.SessionKey = (function (parent) { 3652 this.SessionKey = (function (parent) {
3653 var returnURL = "";
3654 if (window.returnURL !== undefined) {
3655 returnURL = String(window.returnURL);
3656 }
3657
3653 function postUpdate() { 3658 function postUpdate() {
3654 // Return a new promise. 3659 // Return a new promise.
3655 var hold = document.createElement("div"); 3660 var hold = document.createElement("div");
3656 var clone = parent.root.cloneNode(true); 3661 var clone = parent.root.cloneNode(true);
3657 hold.appendChild(clone); 3662 hold.appendChild(clone);