Commit fe6bac1c authored by Aron Carroll's avatar Aron Carroll

Use annotator.publish over trigger in Guest

parent 46138b69
......@@ -58,7 +58,7 @@ class Annotator.Guest extends Annotator
origin: origin
scope: "#{scope}:provider"
onReady: =>
@trigger('panelReady')
this.publish('panelReady')
setTimeout =>
event = document.createEvent "UIEvents"
event.initUIEvent "annotatorReady", false, false, window, 0
......
......@@ -35,7 +35,7 @@ class Annotator.Host extends Annotator.Guest
app.appendTo(@frame)
if options.firstRun
this.on 'panelReady', this.actuallyShowFrame(transition: false)
this.on 'panelReady', => this.actuallyShowFrame(transition: false)
if @plugins.Heatmap?
this._setupDragEvents()
......
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