mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
window.path doesn't exist if we have atom.path
This commit is contained in:
@@ -9,7 +9,7 @@ windowAdditions =
|
||||
path: null
|
||||
|
||||
startup: ->
|
||||
@path = $atomController.path.toString()
|
||||
@path = atom.path
|
||||
@setTitle (_.last @path.split '/') or 'Untitled Document'
|
||||
|
||||
$atomController.window.makeKeyWindow
|
||||
|
||||
@@ -32,7 +32,7 @@ atom.app = new App
|
||||
for name, method of atom.app
|
||||
atom[name] = atom.app[name]
|
||||
|
||||
atom.path = $atomController.path.toString()
|
||||
atom.path = $atomController.path?.valueOf()
|
||||
if handler = Document.handler atom.path
|
||||
atom.document = new handler atom.path
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user