     @body.removeAttribute('data-fonts-cjk-markdownPreviewFont')
     @body.removeAttribute('data-fonts-cjk-workspaceFont')
     @style.parentNode.removeChild(@style)
-
-    @observer?.dispose()
+    @disposables.dispose()


    document.head.appendChild(@style)

    @observer = atom.config.observe('fonts-cjk.editorFont', -> applyFont())
    @observer = atom.config.observe('fonts-cjk.markdownPreviewFont', -> applyFont())
    @observer = atom.config.observe('fonts-cjk.workspaceFont', -> applyFont())

    setTimeout(triggerMeasurements, 500)


{CompositeDisposable} = require('atom')

module.exports =
  run: ->
    @body = document.body
    @style = document.createElement('style')
    @disposables = new CompositeDisposable

    triggerMeasurements = ->
      atom.workspace.increaseFontSize()
