Clear annotations

This commit is contained in:
James Allen 2014-07-25 16:54:49 +01:00
parent 7ad9849db0
commit d3fd161c25

View file

@ -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