window.path is the thing now

This commit is contained in:
Corey Johnson
2011-11-10 17:43:36 -08:00
parent 4dc2d2fca1
commit 4ae59fa5a7
6 changed files with 15 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ windowAdditions =
path: null
startup: ->
@path = atom.path
@path = $atomController.path?.toString()
$atomController.window.makeKeyWindow
shutdown: ->

View File

@@ -32,11 +32,11 @@ atom.app = new App
for name, method of atom.app
atom[name] = atom.app[name]
atom.path = $atomController.path?.valueOf()
if handler = Document.handler atom.path
atom.document = new handler atom.path
path = $atomController.path?.toString()
if handler = Document.handler path
atom.document = new handler path
else
throw "I DON'T KNOW ABOUT #{atom.path}"
throw "I DON'T KNOW ABOUT #{path}"
require 'window'
window.startup()