Don't update HTML if view has no parent

This commit is contained in:
Kevin Sawicki 2012-09-27 13:21:02 -07:00
parent d8011fe853
commit e202904b78

View File

@ -59,6 +59,7 @@ class MarkdownPreview extends View
$.ajax(request)
setHtml: (html) ->
return unless @hasParent()
@markdownBody.html(html)
@markdownSpinner.hide()
@markdownBody.show()