mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
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:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user