diff options
Diffstat (limited to 'docs/runtime/program_lifecycle.md')
-rw-r--r-- | docs/runtime/program_lifecycle.md | 3 |
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. |