Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

updateTimeline exits early if svg not initialized

Mike McGann39e861c16ca5
diff --git a/src/js/date/wv.date.timeline.js b/src/js/date/wv.date.timeline.js
index e86120679..adabc03dc 100644
--- a/src/js/date/wv.date.timeline.js
+++ b/src/js/date/wv.date.timeline.js
@@ -465,6 +465,10 @@ wv.date.timeline = wv.date.timeline || function(models, config) {
};
var updateTimeline = function(){
//update timeline line
+
+ // FIXME: This is invoked before svg is initialized
+ if ( !svg ) { return ; }
+
svg.select(".line2").attr("d", line);
var makeFill = d3.select('.line2').attr("d");
d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");