Wouldn't it be better to check for
if(typeof this.imagelyr=="undefined")
since:
if(!this.imagelyr)
would be true if this.imagelyr is false|null|undefined|0|'' (empty string)
-----Ursprungligt meddelande-----
Från: Jordi - IlMaestro - Ministral <[EMAIL PROTECTED]>
Till: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: den 15 februari 2001 12:22
Ämne: [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==null)
>
>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
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev