forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: "onload" event order (denoland#8376)
This commit fixes order of events for "onload" event. Previously handler attached using "window.onload" was always fired before handlers added using "addEventListener".
- Loading branch information
1 parent
e847049
commit 4f46dc9
Showing
3 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters