diff --git a/lib/NgClassifyPreviewView.coffee b/lib/NgClassifyPreviewView.coffee index 8383e6e..2a4adb4 100644 --- a/lib/NgClassifyPreviewView.coffee +++ b/lib/NgClassifyPreviewView.coffee @@ -54,15 +54,13 @@ class PreviewView extends EditorView if cEditor? @trigger 'title-changed' - text = cEditor.getText() - - try - compiled = ngClassify text - compiled = compiled + '\n' + text = cEditor.getText() - @previewEditor.setText compiled + try + output = ngClassify text catch error - return - + output = text + finally + @previewEditor.setText output + '\n' module.exports = PreviewView \ No newline at end of file