rather have the error and maybe find the problem instead of just blindly

catching it
This commit is contained in:
Matthias Wirth
2019-08-25 08:19:32 +02:00
parent fd414b398b
commit fcec6478f7
2 changed files with 3 additions and 9 deletions

View File

@@ -93,8 +93,6 @@ function PlaneObject(icao) {
this.typeDescription = null;
this.wtc = null;
this.filter = PlaneFilter;
this.trail_features = new ol.Collection();
this.layer = new ol.layer.Vector({
@@ -139,11 +137,6 @@ PlaneObject.prototype.logSel = function(loggable) {
}
PlaneObject.prototype.isFiltered = function() {
if (!this.filter) {
console.log("No filter, this shouldn't happen, PlaneObject in question:");
console.log(this);
return false;
}
if (this.filter.minAltitude != undefined && this.filter.maxAltitude != undefined) {
if (this.altitude == null) {
return true;