fix(readme): onunload had parameter on wrong place (#384)

It had the parameter as the body of the function
This commit is contained in:
Haroen Viaene
2017-01-21 16:35:36 +01:00
committed by Yoshua Wuyts
parent e5dc313684
commit e8f603782b
+1 -1
View File
@@ -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.