Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Now works in Iceweasal and Ephiphany

Mike McGannce6b1e54524e
diff --git a/js/Worldview/Widget/Map.js b/js/Worldview/Widget/Map.js
index 1954c7c04..efbf65e29 100644
--- a/js/Worldview/Widget/Map.js
+++ b/js/Worldview/Widget/Map.js
@@ -195,7 +195,7 @@ Worldview.Widget.Map = function(containerId, config) {
var validateConfig = function(config) {
var root = ["config", "projections", "products"];
$.each(root, function(index, key) {
- if ( !(key in config) ) {
+ if ( !config.hasOwnProperty(key) ) {
throw key + " is required in the map configuration";
}
});
diff --git a/js/main.js b/js/main.js
index f5c2a636b..ed9f3b28f 100644
--- a/js/main.js
+++ b/js/main.js
@@ -129,7 +129,7 @@ $(function() {// Initialize "static" vars
config.palettes["__DEBUG"] = debugPalette;
config.paletteOrder.unshift("__DEBUG");
}
- Worldview.config = Object.freeze(config);
+ Worldview.config = config;
init(Worldview.config);
} catch ( error ) {
Worldview.error("Unable to start Worldview", error);