Fix breakages due to save method moving to Pane (except saveAll specs)

This commit is contained in:
Nathan Sobo
2013-02-28 18:07:01 -07:00
committed by probablycorey
parent 3f9ee08e76
commit 685df18a3a
4 changed files with 12 additions and 61 deletions

View File

@@ -348,7 +348,7 @@ class Editor extends View
@hiddenInput.on 'focusout', =>
@isFocused = false
@autosave() if config.get "editor.autosave"
# @autosave() if config.get "editor.autosave"
@removeClass 'is-focused'
@underlayer.on 'click', (e) =>
@@ -456,7 +456,7 @@ class Editor extends View
return if editSession is @activeEditSession
if @activeEditSession
@autosave() if config.get "editor.autosave"
# @autosave() if config.get "editor.autosave"
@saveScrollPositionForActiveEditSession()
@activeEditSession.off(".editor")
@@ -609,8 +609,8 @@ class Editor extends View
@removeClass 'soft-wrap'
$(window).off 'resize', @_setSoftWrapColumn
autosave: ->
@save() if @getPath()?
# autosave: ->
# @save() if @getPath()?
setFontSize: (fontSize) ->
headTag = $("head")