Editor and RootView have deserialize class method

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-12 16:26:59 -07:00
parent 1bd93e5565
commit dac91d1f29
3 changed files with 12 additions and 3 deletions

View File

@@ -39,6 +39,9 @@ class Editor extends View
softTabs: true
tabText: ' '
@deserialize: (viewState) ->
new Editor(viewState)
initialize: ({editSessions, activeEditSessionIndex, buffer, isFocused}) ->
requireStylesheet 'editor.css'
requireStylesheet 'theme/twilight.css'