More cleanup

This commit is contained in:
Nathan Sobo
2014-09-25 12:35:08 -06:00
parent eaa90e6158
commit 9d2bb71109
2 changed files with 2 additions and 2 deletions

View File

@@ -416,7 +416,7 @@ class Pane extends Model
return true unless typeof item.getUri is 'function' and item.shouldPromptToSave?()
chosen = atom.confirm
message: "'#{item.getTitle?() ? item.getUri?()}' has changes, do you want to save them?"
message: "'#{item.getTitle?() ? item.getUri()}' has changes, do you want to save them?"
detailedMessage: "Your changes will be lost if you close this item without saving."
buttons: ["Save", "Cancel", "Don't Save"]

View File

@@ -11,7 +11,7 @@ window.atom.loadTime = Date.now() - startTime
console.log "Window load time: #{atom.getWindowLoadTime()}ms"
# Workaround for focus getting cleared upon window creation
windowFocused = (e) ->
windowFocused = ->
window.removeEventListener('focus', windowFocused)
setTimeout (-> document.querySelector('.workspace').focus()), 0
window.addEventListener('focus', windowFocused)