Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Correct linting errors. Thanks Travis

Taylor Gunnoee7dadc84154e
diff --git a/web/js/naturalEvents/wv.naturalEvents.model.js b/web/js/naturalEvents/wv.naturalEvents.model.js
index 918f79b29..ddfef2a60 100644
--- a/web/js/naturalEvents/wv.naturalEvents.model.js
+++ b/web/js/naturalEvents/wv.naturalEvents.model.js
@@ -99,8 +99,8 @@ wv.naturalEvents.model = wv.naturalEvents.model || function(models, config) {
categories = [categories];
}
_.each(categories, function(c) {
- if ( layerLists[c["title"]] ) {
- category = c["title"];
+ if ( layerLists[c.title] ) {
+ category = c.title;
return;
}
});
diff --git a/web/js/naturalEvents/wv.naturalEvents.ui.js b/web/js/naturalEvents/wv.naturalEvents.ui.js
index 9b4d18fec..fb73097b3 100644
--- a/web/js/naturalEvents/wv.naturalEvents.ui.js
+++ b/web/js/naturalEvents/wv.naturalEvents.ui.js
@@ -189,10 +189,10 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config) {
};
var refreshEvent = function($content, event, index) {
- if ((event.categories[0]['title'] === 'Floods') ||
- (event.categories[0]['title'] === 'Earthquakes') ||
- (event.categories[0]['title'] === 'Drought') ||
- (event.categories[0]['title'] === 'Landslides')) {
+ if ((event.categories[0].title === 'Floods') ||
+ (event.categories[0].title === 'Earthquakes') ||
+ (event.categories[0].title === 'Drought') ||
+ (event.categories[0].title === 'Landslides')) {
return;
}
var geoms = toArray(event.geometries);