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 ...@@ -15,7 +15,6 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
events: events:
'.annotator-toolbar mouseenter': 'show' '.annotator-toolbar mouseenter': 'show'
'.annotator-toolbar mouseleave': 'hide' '.annotator-toolbar mouseleave': 'hide'
'setTool': 'onSetTool'
'setVisibleHighlights': 'onSetVisibleHighlights' 'setVisibleHighlights': 'onSetVisibleHighlights'
html: '<div class="annotator-toolbar annotator-hide"></div>' html: '<div class="annotator-toolbar annotator-hide"></div>'
...@@ -72,13 +71,6 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin ...@@ -72,13 +71,6 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
hide: -> this.toolbar.addClass('annotator-hide') 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) -> onSetVisibleHighlights: (state) ->
if state if state
$(@buttons[1]).addClass(PUSHED_CLASS) $(@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