[Laszlo-user] "instance of" operator in openlaszlo?

P T Withington ptw at openlaszlo.org
Wed Mar 8 16:53:30 EST 2006


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
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user



More information about the Laszlo-user mailing list