   compositionDidChangeDocument: (document) ->
     @documentController.render()
 
-  compositionDidChangeCurrentAttributes: (currentAttributes) ->
+  compositionDidChangeCurrentAttributes: (@currentAttributes) ->
     @toolbarController.updateAttributes(currentAttributes)
     @toolbarController.updateActions()
 

  # Input controller delegate

  inputControllerWillPerformTyping: ->
    @undoManager.recordUndoEntry("Typing", context: @getLocationContext(), consolidatable: true)

  inputControllerWillCutText: ->
    @undoManager.recordUndoEntry("Cut")

    @mutationObserver.start()

  inputControllerDidComposeCharacters: (composedString) ->
    @recordTypingUndoEntry()
    @composition.insertString(composedString)

  # Selection manager delegate
