[Resending, post p4 42228]
The correct[*] way to ask if a property of an Object exists is the
`in` operator:
'bar' in {bar: 42} => true
If you are using an Object as a hash table, and you want to know if
the table contains a particular key, the correct way to ask is to use:
{bar: 42}.hasOwnProperty('bar') => true
This is important if you are using keys whose names would collide
with the default properties of Object (such as `constructor`,
`toString`, etc.)
---
[*] In the SWF runtime, the `in` operator will incorrectly tell you
that a property whose value is the undefined value does not exist.
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev