From 572be8ee7d445dfccc887b0ee244d0edd05767dd Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 10 Nov 2011 11:21:57 -0800 Subject: [PATCH] window calls atom.document.open --- src/atom/window.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/atom/window.coffee b/src/atom/window.coffee index c46031319..6d92f6c12 100644 --- a/src/atom/window.coffee +++ b/src/atom/window.coffee @@ -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()