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

Remove support for server rendered scope data

The Angular parser isn't expressive enough to handle anything but a
subset of ASCII so it's not suitable for pushing arbitrary JSON data
into the scope via ng-init. We'll have to do something else. For now,
remove it because it was just premature optimisation.
parent d7b0c7ee
......@@ -145,17 +145,10 @@ class App
# Load any initial annotations that should be displayed
if _id
if $scope.loadAnnotations
# Load annotations from inline page data
plugins.Store._onLoadAnnotations $scope.loadAnnotations
delete $scope.loadAnnotations
_promise = $scope.loadAnnotations
else
# Load annotations from the API
# XXX: Two requests here is less than ideal
_promise = plugins.Store.loadAnnotationsFromSearch({_id})
.then ->
plugins.Store.loadAnnotationsFromSearch({references: _id})
# XXX: Two requests here is less than ideal
_promise = plugins.Store.loadAnnotationsFromSearch({_id})
.then ->
plugins.Store.loadAnnotationsFromSearch({references: _id})
$q.when _promise, ->
thread = annotator.threading.getContainer _id
......
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