From: Kai Moritz Date: Tue, 25 Sep 2012 15:04:12 +0000 (+0200) Subject: Another fix to the render-order, for from document.write() collected output X-Git-Tag: 0.1.0~8 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=125e70f94f5f64ffbb47305665f4f23488aa30f5;p=openx 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. --- 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