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