James Allen 12 лет назад
Родитель
Сommit
d3fd161c25
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

+ 2 - 3
services/web/public/coffee/ide/editor/directives/aceEditor.coffee

@@ -129,9 +129,8 @@ define [
 						session.setMode("ace/mode/latex")
 						session.setMode("ace/mode/latex")
 
 
 				scope.$watch "annotations", (annotations) ->
 				scope.$watch "annotations", (annotations) ->
-					if annotations?
-						session = editor.getSession()
-						session.setAnnotations annotations
+					session = editor.getSession()
+					session.setAnnotations annotations
 
 
 				scope.$watch "readOnly", (value) ->
 				scope.$watch "readOnly", (value) ->
 					editor.setReadOnly !!value
 					editor.setReadOnly !!value