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

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

From: Michael Cooper via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 25 Jun 2011 23:54:05 +0000
To: public-dap-commits@w3.org
Message-Id: <E1Qacft-0004Lh-4u@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv16683

Modified Files:
	respec.js 
Log Message:
Fixing reference to undefined console object, using precedent from another use

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- respec.js	23 May 2011 13:29:04 -0000	1.151
+++ respec.js	25 Jun 2011 23:54:03 -0000	1.152
@@ -929,7 +929,7 @@
         var header;
         if (this.specStatus === "finding" || this.specStatus === "draft-finding") header = this.makeTAGHeaders();
         else header = this.makeNormalHeaders();
-        console.log(header);
+        if (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, 25 June 2011 23:54:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 25 June 2011 23:54:07 GMT