window.path doesn't exist if we have atom.path

This commit is contained in:
Corey Johnson
2011-11-10 15:00:45 -08:00
parent 0e0d0905b9
commit 35a78425c9
6 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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