2009/dap/ReSpec.js/js respec.js,1.152,1.153

Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv9722

Modified Files:
	respec.js 
Log Message:
Fixing "console is not defined" error

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- respec.js	25 Jun 2011 23:54:03 -0000	1.152
+++ respec.js	2 Jul 2011 20:58:24 -0000	1.153
@@ -221,7 +221,7 @@
         catch (e) {
             document.body.style.display = "inherit";
             error("Processing error: " + e);
-            if (console !== undefined && console.log) console.log(e);
+            if (typeof(console) != "undefined" && console.log) console.log(e);
         }
         document.body.style.display = "inherit";
     },
@@ -929,7 +929,7 @@
         var header;
         if (this.specStatus === "finding" || this.specStatus === "draft-finding") header = this.makeTAGHeaders();
         else header = this.makeNormalHeaders();
-        if (console !== undefined && console.log) console.log(header);
+        if (typeof(console) != "undefined" && console.log) console.log(header);
         var tmp = sn.element("div");
         tmp.innerHTML = header;
         document.body.insertBefore(tmp.firstChild, document.body.firstChild);

Received on Saturday, 2 July 2011 20:58:27 UTC