Commit 1a4268be authored by Jake Hartnell's avatar Jake Hartnell

Remove dead code

SetTool was a holdover from highlight mode days and doesn't do anything.
parent 3ef8de9a
......@@ -15,7 +15,6 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
events:
'.annotator-toolbar mouseenter': 'show'
'.annotator-toolbar mouseleave': 'hide'
'setTool': 'onSetTool'
'setVisibleHighlights': 'onSetVisibleHighlights'
html: '<div class="annotator-toolbar annotator-hide"></div>'
......@@ -72,13 +71,6 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
hide: -> this.toolbar.addClass('annotator-hide')
onSetTool: (name) ->
if name is 'highlight'
$(@buttons[2]).addClass(PUSHED_CLASS)
else
$(@buttons[2]).removeClass(PUSHED_CLASS)
this._updateStickyButtons()
onSetVisibleHighlights: (state) ->
if state
$(@buttons[1]).addClass(PUSHED_CLASS)
......
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