X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=src%2Fjs%2Fstellar-util.js;h=d576a36c1b3d6041edeba0d7d67982f5354cbec7;hp=8722fbfffdc2cf88b48bf96b3a9f1203a3a2cb7b;hb=8017442c509ef1fa545367e727608bdc91bc1504;hpb=6c733477dbaeb521b8b9d25004ee01b74af1529f diff --git a/src/js/stellar-util.js b/src/js/stellar-util.js index 8722fbf..d576a36 100644 --- a/src/js/stellar-util.js +++ b/src/js/stellar-util.js @@ -13146,7 +13146,7 @@ Cursor.prototype.fill = function(value, length) { length = this.buffer().length - this.tell(); } - + this.buffer().fill(value, this.tell(), this.tell() + length); this.seek('+', length); @@ -42404,13 +42404,13 @@ Script.prototype.runInContext = function (context) { if (!(context instanceof Context)) { throw new TypeError("needs a 'context' argument."); } - + var iframe = document.createElement('iframe'); if (!iframe.style) iframe.style = {}; iframe.style.display = 'none'; - + document.body.appendChild(iframe); - + var win = iframe.contentWindow; var wEval = win.eval, wExecScript = win.execScript; @@ -42419,7 +42419,7 @@ Script.prototype.runInContext = function (context) { wExecScript.call(win, 'null'); wEval = win.eval; } - + forEach(Object_keys(context), function (key) { win[key] = context[key]; }); @@ -42428,11 +42428,11 @@ Script.prototype.runInContext = function (context) { win[key] = context[key]; } }); - + var winKeys = Object_keys(win); var res = wEval.call(win, this.code); - + forEach(Object_keys(win), function (key) { // Avoid copying circular objects like `top` and `window` by only // updating existing context properties or new properties in the `win` @@ -42447,9 +42447,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; };