From e8f603782be858ed0ca4fb645140466f4a50b27b Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Sat, 21 Jan 2017 16:35:36 +0100 Subject: [PATCH] fix(readme): onunload had parameter on wrong place (#384) It had the parameter as the body of the function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd9106a..554cf01 100644 --- a/README.md +++ b/README.md @@ -570,7 +570,7 @@ creating listeners always remember to call `e.preventDefault()` and refreshing the full page or the like. To trigger lifecycle events on any part of a view, set the `onload=${(el) => -{}}` and `onunload=${() => {el}}` attributes. These parameters are useful when +{}}` and `onunload=${(el) => {}}` attributes. These parameters are useful when creating self-contained widgets that take care of their own state and lifecycle (e.g. a maps widget) or to trigger animations. Most elements shouldn't have a need for these hooks though.