From d702d283489f4170312817168adc9daabf82fc2c Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 13 Nov 2011 23:22:15 -0800 Subject: [PATCH] thinking window:load should happen before editor:open editor:open can happen lots of times after the window is open, so it's kind of weird if the first time it's called the window isn't loaded yet. --- src/atom/window.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atom/window.coffee b/src/atom/window.coffee index c13759401..1c81afb5f 100644 --- a/src/atom/window.coffee +++ b/src/atom/window.coffee @@ -12,6 +12,8 @@ windowAdditions = url: $atomController.url?.toString() startup: -> + atom.trigger 'window:load', this + success = false for resourceType in @resourceTypes.reverse() @resource = new resourceType @@ -19,8 +21,6 @@ windowAdditions = throw "I DON'T KNOW ABOUT #{@url}" if not success - atom.trigger 'window:load', this - shutdown: -> showConsole: ->