Commit 2d8ba465 authored by Randall Leeds's avatar Randall Leeds

Fix regression -- $rootScope.annotations undefined

parent 4e6df7c8
......@@ -82,6 +82,9 @@ class Hypothesis extends Annotator
for action, roles of annotation.permissions
unless userId in roles then roles.push userId
# Track the visible annotations in the root scope
$rootScope.annotations = []
# Add new annotations to the view when they are created
this.subscribe 'annotationCreated', (a) =>
$rootScope.annotations.unshift a
......
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