James Allen пре 12 година
родитељ
комит
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")
 
 				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