aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-08-25 07:33:34 +0200
committerThomas Lange <code@nerdmind.de>2017-08-25 07:33:34 +0200
commit365eaacdcf9212891c4217c7df9528ecbbc8361e (patch)
treed9d467dce3ec9ba89784612e9447db8c8188fd58 /static
parent4c30f91c94eb739a6a82d49f635a0e2a21d73690 (diff)
downloadbigpipe-365eaacdcf9212891c4217c7df9528ecbbc8361e.tar.gz
bigpipe-365eaacdcf9212891c4217c7df9528ecbbc8361e.tar.xz
bigpipe-365eaacdcf9212891c4217c7df9528ecbbc8361e.zip
Optimization: The outsourced function "globalExecution" is no longer necessary and has been replaced by a simpler variant inside the BigPipe library.
Diffstat (limited to 'static')
-rwxr-xr-xstatic/bigpipe.js4
1 files changed, 2 insertions, 2 deletions
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);
}