       if event.action is "userLeft"
         @_model.getContent("cursors").delete(event.user)
 
+    @_model.getContent('authors').observe (events) => @locker.try ()=>
+      for event in events
+        @editor.removeCursor event.changedBy
+
+
+
+
   # Apply a delta and return the new position
   # @param delta [Object] a *single* delta (see ot-types for more info)
   # @param position [Integer] start position for the delta, default: 0

        selections: new Y.Selections()
        characters: new Y.List()
        cursors: new Y.Object()
      @_model = new Operation.MapManager(@, null, {}, content_operations )
        .execute()


  # @param position [Integer] the position where to insert it
  setCursor : (position) ->
    @selfCursor = @_model.getContent("characters").ref(position)

    @_model.getContent("cursors").val(@_model.HB.getUserId(), @selfCursor)

  setAuthor : (@author) ->
    @_model.getContent('authors').val(@_model.HB.getUserId(), @author)

  # pass deltas to the character instance
  # @param deltas [Array<Object>] an array of deltas
