Commit 05a4eeef authored by csillag's avatar csillag

Remove some redundant code

parent 0f0398b2
...@@ -324,16 +324,8 @@ class Hypothesis extends Annotator ...@@ -324,16 +324,8 @@ class Hypothesis extends Annotator
this this
showViewer: (annotations=[]) => showViewer: (annotations=[]) =>
annotations = annotations.filter (a) -> a?
this.show() this.show()
@element.injector().invoke [ this.updateViewer annotations
'$location', '$rootScope',
($location, $rootScope) =>
@buildReplyList annotations
$rootScope.annotations = annotations
$location.path('/viewer').replace()
]
this
addEmphasis: (annotations=[]) => addEmphasis: (annotations=[]) =>
annotations = annotations.filter (a) -> a? # Filter out null annotations annotations = annotations.filter (a) -> a? # Filter out null annotations
......
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