Interactive interface for browsing global, full-resolution satellite imagery
fixed errors that were breaking grunt test
Benjamina1fd37d02063
diff --git a/test/map/wv.map.runningdata-test.js b/test/map/wv.map.runningdata-test.jsindex ab796bda7..e10912a92 100644--- a/test/map/wv.map.runningdata-test.js+++ b/test/map/wv.map.runningdata-test.js@@ -19,7 +19,8 @@ buster.testCase("wv.map.runningdata", {"1.0: Get Label from Palette object": function() {var scale = {colors: ["fbd1fbff", "a605b0ff", "1e00eaff"],- labels: ["40 – 40.4 ppb", "40.4 – 50 ppb", "50 – 60 ppb"]+ tooltips: ["40 – 40.4", "40.4 – 50", "50 – 60"],+ units: 'ppb'};var value = this.runner.getDataLabel(scale, "1e00eaff");buster.assert.equals(value.label, "50 – 60 ppb");diff --git a/web/js/date/wv.date.model.js b/web/js/date/wv.date.model.jsindex 39013ff03..43bbdc6a8 100644--- a/web/js/date/wv.date.model.js+++ b/web/js/date/wv.date.model.js@@ -86,7 +86,9 @@ wv.date.model = wv.date.model || function(config, spec) {self.save = function(state) {state.t = self.selected.toISOString().split("T")[0];- state.z = self.selectedZoom.toString();+ if(self.selectedZoom) {+ state.z = self.selectedZoom.toString();+ }};self.load = function(state) {