Skip to content

Commit

Permalink
adjust example code (denoland#5332)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxxymum committed May 15, 2020
1 parent c5a54e4 commit d4afc98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/runtime/program_lifecycle.md
Expand Up @@ -28,6 +28,8 @@ window.onunload = (e: Event): void => {
console.log(`got ${e.type} event in onunload function (main)`);
};

console.log("log from main script");

// imported.ts
const handler = (e: Event): void => {
console.log(`got ${e.type} event in event handler (imported)`);
Expand Down

0 comments on commit d4afc98

Please sign in to comment.