From 365eaacdcf9212891c4217c7df9528ecbbc8361e Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 25 Aug 2017 07:33:34 +0200 Subject: Optimization: The outsourced function "globalExecution" is no longer necessary and has been replaced by a simpler variant inside the BigPipe library. --- static/bigpipe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/bigpipe.js b/static/bigpipe.js index a27eec9..fa56d21 100755 --- a/static/bigpipe.js +++ b/static/bigpipe.js @@ -24,7 +24,7 @@ var BigPipe = (function() { execute: function(context, phase) { context.phaseDoneJS[phase].forEach(function(code) { try { - globalExecution(code); + window.eval.call(window, code); } catch(e) { console.error("PhaseDoneJS: " + e); } @@ -215,7 +215,7 @@ var BigPipe = (function() { Pagelet.prototype.executeJSCode = function() { this.JSCode.forEach(function(code) { try { - globalExecution(code); + window.eval.call(window, code); } catch(e) { console.error(this.ID + ": " + e); } -- cgit v1.2.3