Plugin shows configuration from first call, when its initialized twice
[openx] / jquery.openx.js
index 66d91cb..adcf78f 100644 (file)
@@ -25,7 +25,7 @@
 
   var
 
-  settings, domain, id, node,
+  settings, _zones, _options, domain, id, node,
 
   count = 0,
   slots = {},
   $.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,