This initializes constrained values to null during the applyArgs pass, and 
then stores the constraints so they can be applied at init time.

A

On Jun 14, P T Withington wrote:

> > LzNode.prototype.__LZstoreRefs = function ( val , prop ){
> >    //Debug.write('__LZstoreRefs', this, prop, val);
> >    for ( var i in val){
> >        var ref = this[i];
> >        // if ref is a function, ref == null will be true
> >        // but !ref will be false
> >        if (ref == null && !ref) this[i] = null;
> >    }
> > 
> >    this.__LZstoreAttr( val , prop );
> > }
> 
> Henry and I propose to replace:
> 
> (ref == null && !ref)
> 
> with:
> 
> (! ref instanceof Function)
> 
> since it's not clear the former will work in Javascript.
> 
> But we are also mystified as to what exactly this function is trying to do.
> Can you enlighten us?
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to