Expand all

ve.DiffTreeNode

Extends

Constructor

new ve.DiffTreeNode(node, config) #

Tree node for conducting a tree diff.

Parameters:

Name Type Description
node Object

Node of any type

config Object
Source:
Tree node for conducting a tree diff.

Methods

getOriginalNodeChildren() → {Array} #

Get the children of the original node

Source:

Returns:

Array of nodes the same type as the original node

Type
Array
Get the children of the original node

isEqual(otherNode) → {boolean} #

Determine whether two nodes are equal. Branch nodes are considered equal if they have the same types and element.attributes. Content branch nodes are only equal if they also have the same content.

Parameters:

Name Type Description
otherNode ve.DiffTreeNode

Node to compare to this node

Source:

Returns:

The nodes are equal

Type
boolean
Determine whether two nodes are equal.