       Validator.validate tree
 
       if errorLine != null
-#  	    inWorldEditor.removeLineClass(errorLine - 1, 'background', 'line-error')
-  	    errorLine = null
+        inWorldEditor.getSession().setAnnotations []
+        errorLine = null
 
       document.getElementById('status').classList.add 'ok'
       document.getElementById('status').classList.remove 'err'


      if ex.line or ex.token
        line = ex.line or ex.token.coords.line
#        if line != errorLine && errorLine != null
#  	      inWorldEditor.removeLineClass(errorLine - 1, 'background', 'line-error')

        errorLine = line
#        inWorldEditor.addLineClass(errorLine - 1, 'background', 'line-error')

      document.getElementById('status').classList.add('err')
      document.getElementById('status').classList.remove('ok')


  mainEventHandlers =
    'source': (data) ->
      inWorldEditor.setValue data.source, -1


  mainListener = (e) ->
