W3C home > Mailing lists > Public > public-dap-commits@w3.org > July 2011

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

From: Michael Cooper via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 02 Jul 2011 20:58:26 +0000
To: public-dap-commits@w3.org
Message-Id: <E1Qd7Gk-0002X6-Np@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 2 July 2011 20:58:27 GMT