Merge branch 'master' of ssh://taler.net/var/git/wallet-webex

This commit is contained in:
Florian Dold 2016-10-05 00:05:26 +02:00
commit 6604bda9f6

View File

@ -149,7 +149,11 @@ namespace TalerNotify {
} }
let responder = (msg?: any) => { let responder = (msg?: any) => {
let fullMsg = Object.assign({}, msg, {callId}); let fullMsg = Object.assign({}, msg, {callId});
let evt = new CustomEvent(type + "-result", {detail: fullMsg}); let opts = { detail: fullMsg };
if ("function" == typeof cloneInto) {
opts = cloneInto(opts, document.defaultView);
}
let evt = new CustomEvent(type + "-result", opts);
document.dispatchEvent(evt); document.dispatchEvent(evt);
}; };
handler(e.detail, responder); handler(e.detail, responder);