Fix null assignment issue when clicking & commented out console debuging
This commit is contained in:
parent
a20a24fd76
commit
caba79631a
@ -100,9 +100,9 @@ function timeformat(secs) {
|
||||
m = m.floor();
|
||||
s = s - (m * 60 );
|
||||
s = Math.round(s,0)
|
||||
console.log("Hours :"+ h);
|
||||
console.log("Minutes :"+ m);
|
||||
console.log("Seconds :"+ s);
|
||||
console.log("Input :"+ secs);
|
||||
// console.log("Hours :"+ h);
|
||||
// console.log("Minutes :"+ m);
|
||||
// console.log("Seconds :"+ s);
|
||||
// console.log("Input :"+ secs);
|
||||
return h+":"+(m < 10 ? '0'+m : m)+":"+(s < 10 ? '0'+s : s); //zero padding on minutes and seconds
|
||||
}
|
||||
|
@ -161,7 +161,9 @@ function onCanvasClick( event ) {
|
||||
|
||||
INTERSECTED = intersects[ 0 ].object;
|
||||
// console.log( INTERSECTED.name );
|
||||
document.getElementById(lastInputBox).value = INTERSECTED.name;
|
||||
if (lastInputBox) {
|
||||
document.getElementById(lastInputBox).value = INTERSECTED.name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user