Fix null assignment issue when clicking & commented out console debuging

This commit is contained in:
Rob L 2016-07-22 11:49:31 -04:00
parent a20a24fd76
commit caba79631a
2 changed files with 7 additions and 5 deletions

View File

@ -100,9 +100,9 @@ function timeformat(secs) {
m = m.floor(); m = m.floor();
s = s - (m * 60 ); s = s - (m * 60 );
s = Math.round(s,0) s = Math.round(s,0)
console.log("Hours :"+ h); // console.log("Hours :"+ h);
console.log("Minutes :"+ m); // console.log("Minutes :"+ m);
console.log("Seconds :"+ s); // console.log("Seconds :"+ s);
console.log("Input :"+ secs); // console.log("Input :"+ secs);
return h+":"+(m < 10 ? '0'+m : m)+":"+(s < 10 ? '0'+s : s); //zero padding on minutes and seconds return h+":"+(m < 10 ? '0'+m : m)+":"+(s < 10 ? '0'+s : s); //zero padding on minutes and seconds
} }

View File

@ -161,7 +161,9 @@ function onCanvasClick( event ) {
INTERSECTED = intersects[ 0 ].object; INTERSECTED = intersects[ 0 ].object;
// console.log( INTERSECTED.name ); // console.log( INTERSECTED.name );
if (lastInputBox) {
document.getElementById(lastInputBox).value = INTERSECTED.name; document.getElementById(lastInputBox).value = INTERSECTED.name;
}
} }