Skip to content

Commit 15e8d05

Browse files
committed
Update docs for getNextNode and related methods
1 parent cf3e229 commit 15e8d05

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

docs/_entries/node/getnextnode.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ title: getNextNode
33
name: node-functions-getnextnode
44
---
55

6-
Get the next node in the tree.
6+
Get the next node in the tree. This is the next sibling, if there is one. Or, if there is no next sibling, a node further down in the tree.
77

8-
- If the node has children, return the first child.
9-
- If the node is the last child, return the next sibling of the parent.
8+
This is the next sibling, if there is one. Or, if there is no next sibling, a node further up in the tree.
109

11-
Returns a node or null.
10+
- Returns a node or null.
1211

1312
{% highlight js %}
1413
var node = node.getNextNode();

docs/_entries/node/getnextvisiblenode.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ name: node-functions-getnextvisivlenode
55

66
Get the next visible node in the tree. Does the same as using the _down_ key.
77

8-
Returns a node or null.
8+
This is the previous sibling, if there is one. Or, if there is no previous sibling, a node further up in the tree that is visible.
9+
10+
- Returns a node or null.
11+
- A node is visible if all its parents are open.
912

1013
{% highlight js %}
1114
var node = node.getNextVisibleNode();

docs/_entries/node/getpreviousnode.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ title: getPreviousNode
33
name: node-functions-getpreviousnode
44
---
55

6-
Return the previous node in the tree.
7-
8-
Returns a node or null.
6+
Return the previous node in the tree. This is the previous sibling, if there is one. Or, if there is no previous sibling, a node further up in the tree.
97

108
{% highlight js %}
119
var node = node.getPreviousNode();

docs/_entries/node/getpreviousvisiblenode.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ title: getPreviousVisibleNode
33
name: node-functions-getpreviousvisiblenode
44
---
55

6-
- Get the previous visible node in the tree. Does the same as using the _up_ key.
7-
- If the previous node is an open parent: return the last child of the node.
8-
- If the previous node is a closed parent: skip the child nodes of the previous parent, return the previous parent node.
6+
Get the previous visible node in the tree. Does the same as using the _up_ key.
97

10-
Returns a node or null.
8+
This is the previous sibling, if there is one. Or, if there is no previous sibling, a node further up in the tree that is visible.
9+
10+
- Returns a node or null.
11+
- A node is visible if all its parents are open.
1112

1213
{% highlight js %}
1314
var node = node.getPreviousVisibleNode();

0 commit comments

Comments
 (0)