Commit 4e2a137e authored by csillag's avatar csillag

Fix setDynamicBucketMode so that it does not fail on guests with no heatmap

parent 29006cd7
......@@ -64,8 +64,9 @@ class Annotator.Guest extends Annotator
.bind('onEditorSubmit', this.onEditorSubmit)
.bind('setDynamicBucketMode', (ctx, value) =>
this.plugins.Heatmap.dynamicBucket = value
if value then this.plugins.Heatmap._update()
return unless @plugins.Heatmap
@plugins.Heatmap.dynamicBucket = value
if value then @plugins.Heatmap._update()
)
.bind('setActiveHighlights', (ctx, tags=[]) =>
......
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