window.path is used everywhere now. Still on the fence about it

This commit is contained in:
Corey Johnson
2011-11-11 11:19:39 -08:00
parent 80ef6d9fa8
commit 4052efcab4

View File

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