From: Kai Moritz Date: Wed, 27 Feb 2013 08:38:55 +0000 (+0100) Subject: Plugin shows configuration from first call, when its initialized twice X-Git-Tag: 0.1.1~4 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=d137d2f027d487bddaddb60d6747a59d6a01e2f4;p=openx Plugin shows configuration from first call, when its initialized twice --- diff --git a/jquery.openx.js b/jquery.openx.js index 66d91cb..98c56ec 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -25,7 +25,7 @@ var - settings, domain, id, node, + settings, _zones, _options, domain, id, node, count = 0, slots = {}, @@ -37,11 +37,17 @@ $.openx = function( zones, options ) { if (domain) { - if (console.error) + if (console.error) { console.error('jQuery.openx was already initialized!'); + console.log('Configured zones: ', _zones); + console.log('Configured options: ', _options); + } return; } + _zones = zones; + _options = options; + settings = $.extend( { 'protocol': document.location.protocol,