copy pasta fail

This commit is contained in:
Chris Wanstrath 2011-11-26 01:06:29 -08:00
parent 09a5ba0e0c
commit aa10aa298c

View File

@ -93,19 +93,6 @@ class Editor extends Resource
true
edit: (code) ->
@session = new EditSession code
@session.setValue code
@session.setUseSoftTabs @settings.softTabs
@session.setTabSize if @settings.softTabs then @settings.tabSize else 8
@session.setUndoManager new UndoManager
@session.on 'change', => @dirty = true
@pane.ace.setSession @session
@pane.ace.setTheme require "ace/theme/#{@settings.theme}"
@pane.ace.setShowInvisibles @settings.showInvisibles
@pane.ace.setPrintMarginColumn @settings.marginColumn
close: ->
if @dirty
detailedMessage = if @url