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.
This commit is contained in:
Chris Wanstrath
2011-11-13 23:22:15 -08:00
parent 2a90f10cbe
commit d702d28348

View File

@@ -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: ->