Fixed console references for Firefox

This commit is contained in:
Barry Silverman 2010-09-19 03:02:26 -04:00
parent 470080015d
commit ef88fdeb90
3 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ function recalcNodeList(list){
list = recalclist; list = recalclist;
recalclist = new Array(); recalclist = new Array();
} }
console.log(n,'looping...'); if(ctrace) console.log(n,'looping...');
} }
function recalcNode(node, recalclist){ function recalcNode(node, recalclist){
@ -131,7 +131,7 @@ function getNodeValue(group){
if((n.state=='fl')&&(flstate==undefined)) flstate = 'fl'; if((n.state=='fl')&&(flstate==undefined)) flstate = 'fl';
if(n.state=='fh') flstate = 'fh'; if(n.state=='fh') flstate = 'fh';
} }
if(flstate==undefined) console.log(group); if(flstate==undefined && ctrace) console.log(group);
return flstate; return flstate;
} }

View File

@ -104,7 +104,7 @@ function initChip(){
cycle = 0; cycle = 0;
trace = Array(); trace = Array();
chipStatus(); chipStatus();
console.log('initChip done after', now()-start); if(ctrace)console.log('initChip done after', now()-start);
} }
function step(){ function step(){
@ -275,7 +275,7 @@ function chipStatus(){
' clearIR:' + readBit('clearIR') + ' clearIR:' + readBit('clearIR') +
' D1x1:' + readBit('D1x1'); ' D1x1:' + readBit('D1x1');
setStatus(machine1 + "<br>" + machine2); setStatus(machine1 + "<br>" + machine2);
if (loglevel>2) { if (loglevel>2 && ctrace) {
console.log(machine1 + " " + machine2 + " " + machine3 + " " + machine4 + " " + machine5); console.log(machine1 + " " + machine2 + " " + machine3 + " " + machine4 + " " + machine5);
} }
selectCell(ab); selectCell(ab);

View File

@ -115,7 +115,6 @@ function setupLayerVisibility(){
} }
function setupBackground(){ function setupBackground(){
console.log('starting setupBackground');
chipbg = document.getElementById('chipbg'); chipbg = document.getElementById('chipbg');
chipbg.width = 4000; chipbg.width = 4000;
chipbg.height = 4000; chipbg.height = 4000;