diff options
author | Benjamin Gruenbaum <benjamingr@gmail.com> | 2020-11-26 23:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 22:27:55 +0100 |
commit | 4f46dc999b9fd3f26b6586d06d099d7039ca35c8 (patch) | |
tree | 360a41d113fed4cfe90158205ee9b96d992daf8e /docs/runtime/program_lifecycle.md | |
parent | e84704968e92638fae02c6ec2d629158dab3f25f (diff) |
fix: "onload" event order (#8376)
This commit fixes order of events for "onload" event.
Previously handler attached using "window.onload" was
always fired before handlers added using "addEventListener".
Diffstat (limited to 'docs/runtime/program_lifecycle.md')
-rw-r--r-- | docs/runtime/program_lifecycle.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/runtime/program_lifecycle.md b/docs/runtime/program_lifecycle.md index 7f6035048..f0ebbd448 100644 --- a/docs/runtime/program_lifecycle.md +++ b/docs/runtime/program_lifecycle.md @@ -61,12 +61,12 @@ major difference between them, let's run the example: $ deno run main.ts log from imported script log from main script -got load event in onload function (main) got load event in event handler (imported) got load event in event handler (main) -got unload event in onunload function (main) +got load event in onload function (main) got unload event in event handler (imported) got unload event in event handler (main) +got unload event in onunload function (main) ``` All listeners added using `window.addEventListener` were run, but |