mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
window.path is the thing now
This commit is contained in:
@@ -7,7 +7,7 @@ windowAdditions =
|
||||
path: null
|
||||
|
||||
startup: ->
|
||||
@path = atom.path
|
||||
@path = $atomController.path?.toString()
|
||||
$atomController.window.makeKeyWindow
|
||||
|
||||
shutdown: ->
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user