Wouldn't it be better to check for
if(typeof this.imagelyr=3D=3D"undefined")
since:
if(!this.imagelyr)
would be true if this.imagelyr is false|null|undefined|0|'' (empty =
string)
-----Ursprungligt meddelande-----
Fr=E5n: Jordi - IlMaestro - Ministral <jmi...@or...>
Till: dyn...@li... =
<dyn...@li...>
Datum: den 15 februari 2001 12:22
=C4mne: [Dynapi-Dev] One more green
>I'm doing some Mozilla/NS6 bugfixing. So far I've updated CVS with a =
working
>button widget. I guess that's one more green cell.
>
>The bug:
>
>The code checked for unexistant properties this way
>
>if(this.imagelyr=3D=3Dnull)
>
>This worked fine untill now but Mozilla returns undefined properties as
>'undefined', which is not equal to null. I replaced the condition with
>if(!this.imagelyr)
>
>
>_______________________________________________
>Dynapi-Dev mailing list
>Dyn...@li...
>http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
|