Cool. Then this should be submitted as a fix.
-----Original Message----- From: P T Withington [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 4:54 PM To: William Krick Cc: Laszlo-User Subject: Re: [Laszlo-user] "instance of" operator in openlaszlo? 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
