This can't be right.

js> function foo () {}
js> foo == null
false
js> (! foo)
false
js>

Per Adam's comment, I think we had the sense of the test wrong.  He  
is looking for attributes that have constraints (hence attributes  
that correspond to functions) and setting the attribute slot to null,  
at least until it can be constrained.  Perhaps try removing the ! ?

The test as is just makes no sense in Javascript and probably doesn't  
even work correctly in swf.  I think this test only worked correctly  
in swf5.

On 2006-06-14, at 22:40 EDT, [EMAIL PROTECTED] wrote:

> Author: hqm
> Date: 2006-06-14 22:40:56 -0400 (Wed, 14 Jun 2006)
> New Revision: 1003
>
> Modified:
>    openlaszlo/branches/legals/WEB-INF/lps/lfc/core/LzNode.lzs
> Log:
> for some reason calling
> -        if (!(ref instanceof Function)) this[i] = null;
> causes resizestate to fail
> reverting to previous code:
> +        if (ref == null && !ref) this[i] = null;
>
>
> Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/core/LzNode.lzs
> ===================================================================
> --- openlaszlo/branches/legals/WEB-INF/lps/lfc/core/LzNode.lzs         
> 2006-06-15 01:34:44 UTC (rev 1002)
> +++ openlaszlo/branches/legals/WEB-INF/lps/lfc/core/LzNode.lzs         
> 2006-06-15 02:40:56 UTC (rev 1003)
> @@ -917,7 +917,7 @@
>          // This initializes constrained values to null during the
>          // applyArgs pass, and then stores the constraints so they  
> can
>          // be applied at init time.
> -        if (!(ref instanceof Function)) this[i] = null;
> +        if (ref == null && !ref) this[i] = null;
>      }
>
>      this.__LZstoreAttr( val , prop );
>
> _______________________________________________
> Laszlo-checkins mailing list
> [EMAIL PROTECTED]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to