[dojo-contributors] Re: dojo.lang.isUndefined()

Scott J. Miles sjmiles at turboajax.com
Thu Jun 29 20:13:03 EDT 2006


>> IE returns "unknown" for some typeof tests. At least they are honest. ;-)

In that case, the dj_undef test should probably look like:

return (!(name in object) || (typeof object[name] == "undefined"));

Regards,
Scott J. Miles
TurboAjax Group
http://www.turboajax.com

-----Original Message-----
From: dojo-contributors-bounces at dojotoolkit.org
[mailto:dojo-contributors-bounces at dojotoolkit.org] On Behalf Of Dean Edwards
Sent: Thursday, June 29, 2006 4:31 PM
To: dojo dev.
Subject: Re: [dojo-contributors] Re: dojo.lang.isUndefined()

Aaron Boodman wrote:
> Also, in Firefox this will raise a warning in the JS console if strict 
> mode is enabled. I just stopped writing code like this and used the 
> typeof test directly each time. :-/
> 

IE returns "unknown" for some typeof tests. At least they are honest. ;-)

-dean




More information about the dojo-contributors mailing list