projects
/
openx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ecb24d
)
Plugin shows configuration from first call, when its initialized twice
author
Kai Moritz
<kai@juplo.de>
Wed, 27 Feb 2013 08:38:55 +0000
(09:38 +0100)
committer
Kai Moritz
<kai@juplo.de>
Wed, 27 Feb 2013 18:35:36 +0000
(19:35 +0100)
jquery.openx.js
patch
|
blob
|
history
diff --git
a/jquery.openx.js
b/jquery.openx.js
index
66d91cb
..
98c56ec
100644
(file)
--- a/
jquery.openx.js
+++ b/
jquery.openx.js
@@
-25,7
+25,7
@@
var
var
- settings, domain, id, node,
+ settings,
_zones, _options,
domain, id, node,
count = 0,
slots = {},
count = 0,
slots = {},
@@
-37,11
+37,17
@@
$.openx = function( zones, options ) {
if (domain) {
$.openx = function( zones, options ) {
if (domain) {
- if (console.error)
+ if (console.error)
{
console.error('jQuery.openx was already initialized!');
console.error('jQuery.openx was already initialized!');
+ console.log('Configured zones: ', _zones);
+ console.log('Configured options: ', _options);
+ }
return;
}
return;
}
+ _zones = zones;
+ _options = options;
+
settings = $.extend(
{
'protocol': document.location.protocol,
settings = $.extend(
{
'protocol': document.location.protocol,