rTraverse(node, func) Since: 1.3.0
Traverses the children of a DOM node in reverse.
Syntax
sceditor.dom.rTraverse(node, func[, innermostFirst][, firstLevelOnly]);
Parameters
node
Type: Node
The node to traverse the children of.
func
Type: function
The function to call for each child. Should take 1 parameter, the child DOM node.
If func
returns boolean false, traversing will stop immediately.
innermostFirst
Type: boolean
Default: false
If to start with the innermost child nodes first.
firstLevelOnly
Type: boolean
Default: false
If to only traverse the first level of child nodes.
reverse
Type: boolean
Default: false
If to traverse the child nodes backwards.