Commit 434f6aad authored by csillag's avatar csillag

Fix regression introduced in previous cumit, and remove more useless stuff

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