>
> 3) What about the case of a $once constraint? Will it be handled
> correctly? In LzNode when there are no dependencies, the constraint
> function is still called at least once. I don't see in this code
> where that is handled.
Here's where the $once function gets called if no dependencies, in
__LZresolveRefs, before the loop that calls applyConstraints, there is a
loop that checks a constraint to see if there are no dependencies, and just
calls it right there if there aren't any.
} else if ( !('dependencies' in rp && rp.dependencies) ){
if (rp instanceof Function) {
rp.call(this);
}
}