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

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 UTC