From 2a1031dc0c6bfbab4a55be16ceb53b55bc2579de Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 27 Feb 2013 09:38:55 +0100 Subject: [PATCH 1/1] Plugin shows configuration from first call, when its initialized twice --- jquery.openx.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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, -- 2.20.1