X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=jquery.openx.js;fp=jquery.openx.js;h=f156ba5aac65cd8c2a410288fbf3c9d764806e27;hb=9b00ed74c64f696a03334e59364ac6341ce1627a;hp=98c56ece933ed4e964e674719acaca00a3d56609;hpb=946890627ff694b609da5d14a3ae7a8f6c7062ef;p=openx diff --git a/jquery.openx.js b/jquery.openx.js index 98c56ec..f156ba5 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -36,6 +36,8 @@ $.openx = function( zones, options ) { + var name, src, errors = [], i; + if (domain) { if (console.error) { console.error('jQuery.openx was already initialized!'); @@ -48,10 +50,20 @@ _zones = zones; _options = options; + if (!options.server) + errors.push('Required option "server" is missing!'); + if (errors.length > 0) { + if (console.error) { + for (i=0; i