Fix for two errors, that only appear under IE 8
[openx] / openx.js
index 92c25bc..94a3bb4 100644 (file)
--- a/openx.js
+++ b/openx.js
       result = /src\s*=\s*['"]([^'"]*)['"]/i.exec(src);
       if (result == null) {
         /** script-tag with inline-code: execute inline-code! */
+        result = /^\s*<.*$/m.exec(inline);
+        if (result != null) {
+          /** Remove leading HTML-comments, because IE will stumble otherwise */
+          inline = inline.slice(result[0].length,inline.length);
+        }
         $.globalEval(inline);
       }
       else {
   }
 
 } ( window.openx = window.openx || {}, jQuery ));
+
+var OA_output = {}; // << Needed, because IE will complain loudly otherwise!