A tree data structure that emits events on updates, even if the modification is triggered by one of the leaves, making it easier to think in a reactive way.
This PR attempts to address Issue #103. I've added a singleParent flag to the Freezer constructor that makes the addParent function throw an exception if a node is about to get multiple parents. The default for the flag is false, so no existing code should be effected.
This PR attempts to address Issue #103. I've added a
singleParent
flag to the Freezer constructor that makes theaddParent
function throw an exception if a node is about to get multiple parents. The default for the flag isfalse
, so no existing code should be effected.