mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Clear annotations
This commit is contained in:
parent
7ad9849db0
commit
d3fd161c25
1 changed files with 2 additions and 3 deletions
|
@ -129,9 +129,8 @@ define [
|
|||
session.setMode("ace/mode/latex")
|
||||
|
||||
scope.$watch "annotations", (annotations) ->
|
||||
if annotations?
|
||||
session = editor.getSession()
|
||||
session.setAnnotations annotations
|
||||
session = editor.getSession()
|
||||
session.setAnnotations annotations
|
||||
|
||||
scope.$watch "readOnly", (value) ->
|
||||
editor.setReadOnly !!value
|
||||
|
|
Loading…
Reference in a new issue