projects
/
openx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
aebbdbf
)
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:29:50 +0000
(19:29 +0100)
jquery.openx.js
patch
|
blob
|
history
diff --git
a/jquery.openx.js
b/jquery.openx.js
index
66d91cb
..
adcf78f
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)
- console.error('jQuery.openx was already initialized!');
+ if (console.error) {
+ console.error('jQuery.openx was already initialized:');
+ console.error(_zones);
+ console.error(_options);
+ }
return;
}
return;
}
+ _zones = zones;
+ _options = options;
+
settings = $.extend(
{
'protocol': document.location.protocol,
settings = $.extend(
{
'protocol': document.location.protocol,