Commit d999e649 authored by Randall Leeds's avatar Randall Leeds

Defend against slow heatmap setup

parent 71439428
...@@ -28,6 +28,7 @@ class App ...@@ -28,6 +28,7 @@ class App
heatmap.subscribe 'updated', => heatmap.subscribe 'updated', =>
elem = d3.select(heatmap.element[0]) elem = d3.select(heatmap.element[0])
return unless elem?.datum()
data = {highlights, offset} = elem.datum() data = {highlights, offset} = elem.datum()
tabs = elem.selectAll('div').data data tabs = elem.selectAll('div').data data
height = $(window).outerHeight(true) height = $(window).outerHeight(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment