From 4f46dc999b9fd3f26b6586d06d099d7039ca35c8 Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Thu, 26 Nov 2020 23:27:55 +0200 Subject: 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". --- cli/tests/034_onload.out | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/034_onload.out b/cli/tests/034_onload.out index c9556e991..9b1f454c9 100644 --- a/cli/tests/034_onload.out +++ b/cli/tests/034_onload.out @@ -1,11 +1,11 @@ log from nest_imported script log from imported script log from main -got load event in onload function got load event in event handler (nest_imported) got load event in event handler (imported) got load event in event handler (main) -got unload event in onunload function +got load event in onload function got unload event in event handler (nest_imported) got unload event in event handler (imported) got unload event in event handler (main) +got unload event in onunload function -- cgit v1.2.3