Class DOMTreeSequenceOperationHandler

Construct a new DOM operation element capable of replacing the specified subtrees.

Constructor

class DOMTreeSequenceOperationHandler(par, before, oldnodes, newnodes, newnodes)
Arguments:
  • par – The tree.Node whose children should be replaced
  • before
    The tree.Node where new nodes should be attached
    before
  • oldnodes
    An array of the root DOM elements of the original
    subtrees
  • newnodes
    An array of the root DOM elements of the changed
    subtrees
  • newnodes

Methods

activate

DOMTreeSequenceOperationHandler#activate()

Activate this hunk, inserting new subtrees and removing old subtrees if necessary.

deactivate

DOMTreeSequenceOperationHandler#deactivate()

Deactivate this hunk, removing inserted nodes and inserting removed nodes into if necessary.

isActive

DOMTreeSequenceOperationHandler#isActive()

Return true if the hunk is active

toggle

DOMTreeSequenceOperationHandler#toggle()

Toggle active state

Table Of Contents

Previous topic

Class DOMNodeReplaceOperationHandler

Next topic

JSON Payload