public interface SharingNodes
using one node in two places in one Tree
To do this, either clone the shared node like so:
tree.add(isc.addProperties({}, sharedNode));or place the shared data in a shared subobject instead.
sharing nodes or subtrees across Trees
Individual nodes within differing tree structures can be shared by two Trees only if
nameProperty
, childrenProperty
, and openProperty
have
different values in each Tree.
As a special case of this, two Trees can maintain different open state across a single read-only structure as long as just "openProperty" has a different value in each Tree.