docs: fix onremove lifecycle doc (#1552)

Fixed the description of onremove to match the current implementation of onbeforeremove (promise vs. done callback)
This commit is contained in:
mpfau 2017-01-19 19:04:53 +01:00 committed by Pat Cavit
parent 813bfb5643
commit 542b87889b

View file

@ -154,7 +154,7 @@ var Fader = {
### onremove ### onremove
The `onremove(vnode)` hook is called before a DOM element is removed from the document. If a `onbeforeremove` hook is also defined, the `onremove` hook runs after the `done` callback is called. The `onremove(vnode)` hook is called before a DOM element is removed from the document. If a `onbeforeremove` hook is also defined, the `onremove` hook runs after the promise returned from `onbeforeremove` is completed.
This hook is called on any element that is removed from the document, regardless of whether it was directly detached from its parent or whether it is a child of another element that was detached. This hook is called on any element that is removed from the document, regardless of whether it was directly detached from its parent or whether it is a child of another element that was detached.