Turn on strict mode, fix a few errors.
This commit is contained in:
parent
df79f7c989
commit
139ed5cb36
|
@ -1,3 +1,5 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
var PlaneSvg = "M 0,0 " +
|
var PlaneSvg = "M 0,0 " +
|
||||||
"M 1.9565564,41.694305 C 1.7174505,40.497708 1.6419973,38.448747 " +
|
"M 1.9565564,41.694305 C 1.7174505,40.497708 1.6419973,38.448747 " +
|
||||||
"1.8096508,37.70494 1.8936398,37.332056 2.0796653,36.88191 2.222907,36.70461 " +
|
"1.8096508,37.70494 1.8936398,37.332056 2.0796653,36.88191 2.222907,36.70461 " +
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Define our global variables
|
// Define our global variables
|
||||||
var GoogleMap = null;
|
var GoogleMap = null;
|
||||||
var Planes = {};
|
var Planes = {};
|
||||||
|
@ -21,7 +23,10 @@ var RefreshInterval = 1000;
|
||||||
var PlaneRowTemplate = null;
|
var PlaneRowTemplate = null;
|
||||||
|
|
||||||
var TrackedAircraft = 0;
|
var TrackedAircraft = 0;
|
||||||
var TrackedPositions = 0;
|
var TrackedAircraftPositions = 0;
|
||||||
|
var TrackedHistorySize = 0;
|
||||||
|
|
||||||
|
var SitePosition = null;
|
||||||
|
|
||||||
function fetchData() {
|
function fetchData() {
|
||||||
$.getJSON('data/aircraft.json', function(data) {
|
$.getJSON('data/aircraft.json', function(data) {
|
||||||
|
@ -545,9 +550,9 @@ function sortByTrack() { sortBy('track', function(x,y){return compareNumeri
|
||||||
function sortByMsgs() { sortBy('msgs', function(x,y){return compareNumeric(x.msgs, x.sort_pos, y.msgs, y.sort_pos)}); }
|
function sortByMsgs() { sortBy('msgs', function(x,y){return compareNumeric(x.msgs, x.sort_pos, y.msgs, y.sort_pos)}); }
|
||||||
function sortBySeen() { sortBy('seen', function(x,y){return compareNumeric(x.seen, x.sort_pos, y.seen, y.sort_pos)}); }
|
function sortBySeen() { sortBy('seen', function(x,y){return compareNumeric(x.seen, x.sort_pos, y.seen, y.sort_pos)}); }
|
||||||
|
|
||||||
sortId = '';
|
var sortId = '';
|
||||||
sortByFunc = null;
|
var sortByFunc = null;
|
||||||
sortAscending = true;
|
var sortAscending = true;
|
||||||
|
|
||||||
function resortTable() {
|
function resortTable() {
|
||||||
// make it a stable sort
|
// make it a stable sort
|
||||||
|
|
Loading…
Reference in a new issue