Restore conditional loading of react editor renderer

This commit is contained in:
Nathan Sobo
2014-05-16 15:30:50 -06:00
parent 9b7547cbe0
commit 57e6419d1d

View File

@@ -214,10 +214,10 @@ class Editor extends Model
@subscribe @displayBuffer, 'soft-wrap-changed', (args...) => @emit 'soft-wrap-changed', args...
getViewClass: ->
# if atom.config.get('core.useReactEditor')
require './react-editor-view'
# else
# require './editor-view'
if atom.config.get('core.useReactEditor')
require './react-editor-view'
else
require './editor-view'
destroyed: ->
@unsubscribe()