summaryrefslogtreecommitdiff
path: root/docs/runtime
diff options
context:
space:
mode:
authorBenjamin Gruenbaum <benjamingr@gmail.com>2020-12-07 22:22:58 +0200
committerGitHub <noreply@github.com>2020-12-07 21:22:58 +0100
commitb566d184fedcd0fae3de19a54adfa5ce09466cc1 (patch)
tree958e668e88e7ce0382042d6a61b590884374bf34 /docs/runtime
parent43a35b005f9f4631dd97a9db0f41ad76eaed941e (diff)
refactor(cli/rt): deduplicate code (#8649)
Diffstat (limited to 'docs/runtime')
-rw-r--r--docs/runtime/program_lifecycle.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/runtime/program_lifecycle.md b/docs/runtime/program_lifecycle.md
index f0ebbd448..72e21c4f4 100644
--- a/docs/runtime/program_lifecycle.md
+++ b/docs/runtime/program_lifecycle.md
@@ -75,4 +75,5 @@ defined in `imported.ts`.
In other words, you can register multiple `window.addEventListener` `"load"` or
`"unload"` events, but only the last loaded `window.onload` or `window.onunload`
-events will be executed.
+event handlers will be executed. It is preferable to use `addEventListener` when
+possible for this reason.