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: notnagel~4 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2a1031dc0c6bfbab4a55be16ceb53b55bc2579de;p=openx Plugin shows configuration from first call, when its initialized twice --- diff --git a/jquery.openx.js b/jquery.openx.js index 66d91cb..adcf78f 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) - console.error('jQuery.openx was already initialized!'); + if (console.error) { + console.error('jQuery.openx was already initialized:'); + console.error(_zones); + console.error(_options); + } return; } + _zones = zones; + _options = options; + settings = $.extend( { 'protocol': document.location.protocol,