Commit 8c9e4198 authored by Randall Leeds's avatar Randall Leeds

Guard against $rootScope.focused not being defined

parent 966aee8a
...@@ -226,7 +226,7 @@ thread = ['$rootScope', '$window', ($rootScope, $window) -> ...@@ -226,7 +226,7 @@ thread = ['$rootScope', '$window', ($rootScope, $window) ->
childrenEditing = {} childrenEditing = {}
# If this is supposed to be focused, then open it # If this is supposed to be focused, then open it
if scope.annotation in $rootScope.focused if scope.annotation in ($rootScope.focused or [])
scope.collapsed = false scope.collapsed = false
scope.$on "focusChange", -> scope.$on "focusChange", ->
......
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