From 125e70f94f5f64ffbb47305665f4f23488aa30f5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 25 Sep 2012 17:04:12 +0200 Subject: [PATCH] Another fix to the render-order, for from document.write() collected output If inline-code was executed directly via jQuery.globalEval(), the collected output from calls to document.write() was not written emidiately. Because of that, the ordering of the rendered output was messed up. --- openx.js | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/openx.js b/openx.js index 3499345..579b16f 100644 --- a/openx.js +++ b/openx.js @@ -87,13 +87,7 @@ * If output was added via document.write(), this output must be * rendered before other banner-code from the OpenX-server is rendered! */ - if (output.length > 0) { - output.push(OA_output[id]); - OA_output[id] = ""; - for (i=0; i 0) { + output.push(OA_output[id]); + OA_output[id] = ""; + for (i=0; i