JSLint clean JavaScript sources. No fatal errors remain. Options can turn off rest of warnings

This commit is contained in:
paulb777
2011-02-02 08:46:19 -08:00
committed by Fil Maj
parent 5e858f8bc3
commit 6f4673f590
18 changed files with 503 additions and 471 deletions

View File

@@ -19,7 +19,7 @@
*/
function Position(coords, timestamp) {
this.coords = coords;
this.timestamp = (timestamp != 'undefined') ? timestamp : new Date().getTime();
this.timestamp = (timestamp !== 'undefined') ? timestamp : new Date().getTime();
}
function Coordinates(lat, lng, alt, acc, head, vel, altacc) {
@@ -50,7 +50,7 @@ function Coordinates(lat, lng, alt, acc, head, vel, altacc) {
/**
* The altitude accuracy of the position.
*/
this.altitudeAccuracy = (altacc != 'undefined') ? altacc : null;
this.altitudeAccuracy = (altacc !== 'undefined') ? altacc : null;
}
/**