From d3fd161c25da792113e33da24bf18a6b0fff2364 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 25 Jul 2014 16:54:49 +0100 Subject: [PATCH] Clear annotations --- .../web/public/coffee/ide/editor/directives/aceEditor.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index a92f2bd003..86e1637094 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee @@ -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