Skip to content

Commit 9bd9e0e

Browse files
committed
clarify directive updates, fixes vuejs#1044
1 parent d7b1cc3 commit 9bd9e0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/custom-directive.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ A directive definition object can provide several hook functions (all optional):
6161

6262
- `inserted`: called when the bound element has been inserted into its parent node (this only guarantees parent node presence, not necessarily in-document).
6363

64-
- `update`: called after the containing component has updated, __but possibly before its children have updated__. The directive's value may or may not have changed, but you can skip unnecessary updates by comparing the binding's current and old values (see below on hook arguments).
64+
- `update`: called after the containing component's VNode has updated, __but possibly before its children have updated__. The directive's value may or may not have changed, but you can skip unnecessary updates by comparing the binding's current and old values (see below on hook arguments).
6565

66-
- `componentUpdated`: called after the containing component __and its children__ have updated.
66+
- `componentUpdated`: called after the containing component's VNode __and the VNodes of its children__ have updated.
6767

6868
- `unbind`: called only once, when the directive is unbound from the element.
6969

0 commit comments

Comments
 (0)