window calls atom.document.open

This commit is contained in:
Chris Wanstrath
2011-11-10 11:21:57 -08:00
parent 19d7225d5c
commit 572be8ee7d

View File

@@ -42,7 +42,10 @@ windowAdditions =
open: (path) ->
$atomController.window.makeKeyAndOrderFront $atomController
atom.trigger 'window:open', path
if atom.document.open path
atom.trigger 'window:open', path
else
atom.app.open path
close: (path) ->
@shutdown()