     $.ajax(request)
 
   setHtml: (html) ->
-    return unless @hasParent()
-    @markdownBody.html(html)
-    @markdownSpinner.hide()
-    @markdownBody.show()
+    @markdownBody.html(html) if @hasParent()
 
   isMarkdownFile: (path) ->
     fs.isMarkdownExtension(fs.extension(path))

ScrollView = require 'scroll-view'
fs = require 'fs'
$ = require 'jquery'

module.exports =
class MarkdownPreview extends ScrollView

  attach: ->
    return unless @isMarkdownFile(@getActivePath())
    @rootView.append(this)
    @markdownBody.html(@getLoadingHtml())
    @loadHtml()
    @focus()

