Commit 05a4eeef authored by csillag's avatar csillag

Remove some redundant code

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