From b566d184fedcd0fae3de19a54adfa5ce09466cc1 Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Mon, 7 Dec 2020 22:22:58 +0200 Subject: refactor(cli/rt): deduplicate code (#8649) --- docs/runtime/program_lifecycle.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/runtime/program_lifecycle.md') 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. -- cgit v1.2.3