From: Kai Moritz Date: Thu, 28 Feb 2013 16:08:38 +0000 (+0100) Subject: Fetch on resize: "rendered" keeps track of already fetched banners X-Git-Tag: 0.2.0~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=722a178d534dff809a8119fab4258f469bc1233c;p=openx Fetch on resize: "rendered" keeps track of already fetched banners --- diff --git a/jquery.openx.js b/jquery.openx.js index a9827af..66eb110 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -32,6 +32,7 @@ min_width = {}, max_width = {}, width, + rendered = {}, queue = [], output = []; @@ -187,6 +188,7 @@ if (match) max_width[id] = match[1]; } + rendered[id] = false; } }); } @@ -209,6 +211,7 @@ if (width >= min_width[id] && width <= max_width[id]) { queue.push(id); src += escape(id + '=' + OA_zones[slots[id].id] + "|"); + rendered[id] = true; } } src += '&nz=1'; // << We want to fetch named zones!