Class DOMOperationNodeDataMap

Helper class for a memoizing the currently active DOM node during a patching session. This mapping is necessary because DOMNodeReplaceOperationHandler swaps dom nodes when toggled. Thus, any operation attached to a child node needs to be capable of detecting the currently active parent in order to prevent operations on inactive nodes which may lead to loss of data.

Constructor

class DOMOperationNodeDataMap(propname)
Arguments:
  • propname

Methods

getCurrentDOMNode

DOMOperationNodeDataMap#getCurrentDOMNode(node)
Arguments:
  • node

Return active DOM node for this tree.Node.

setCurrentDOMNode

DOMOperationNodeDataMap#setCurrentDOMNode(node, domnode)
Arguments:
  • node
  • domnode

Set active DOM node for this tree.Node.

Table Of Contents