On 2007-10-16, at 17:23 EDT, Henry Minsky wrote:


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);
            }
        }

Yeah, that is for normal nodes, but what about this funny replication case which is duplicating some of the node apply constraint logic, but does not seem to deal with the once case?

Reply via email to