Use getActivePath() helper from attach()

This commit is contained in:
Kevin Sawicki
2012-12-29 20:28:30 -08:00
parent 5a29f9a32c
commit bf86f7ca7b

View File

@@ -25,8 +25,7 @@ class MarkdownPreview extends ScrollView
@attach()
attach: ->
path = rootView.getActiveEditor()?.getPath()
return unless @isMarkdownFile(path)
return unless @isMarkdownFile(@getActivePath())
@rootView.append(this)
@markdownBody.hide()
@markdownSpinner.show()