Yes. `instanceof` is a built-in. I don't know why the original code
is checking classname.
On 2006-03-08 13:28 MST, William Krick wrote:
> there's code in incubator/basevalidator that depends on a classname
> being
> equal to a specific string...
>
> if (item.classname == "edittext") {
> }
>
> However, if I use a class that extends edittext, the code fails
> because the
> classname is different.
>
> Is there some sort of "instance of" operator that can be used
> instead of
> "==" that will work with extended classes?
>
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user