Merge branch 'master' into ns-editor-presenters

This commit is contained in:
Nathan Sobo
2015-02-09 13:37:27 -07:00
47 changed files with 298 additions and 123 deletions

View File

@@ -641,7 +641,11 @@ class TextEditor extends Model
# Determine whether the user should be prompted to save before closing
# this editor.
shouldPromptToSave: -> @isModified() and not @buffer.hasMultipleEditors()
shouldPromptToSave: ({windowCloseRequested}={}) ->
if windowCloseRequested
@isModified()
else
@isModified() and not @buffer.hasMultipleEditors()
###
Section: Reading Text