you probably mean

typeof foo == "undefined"

vs

foo === undefined

but to be honest I was never really sure what the difference is.
If the latter is the better approach u can go ahead and replace
the statements, or I'll do it in the next patch.

regards

Ernst

On 3/30/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
Hello,

looking at some JS pieces in PPR I am seeing lot's of

foo == "undefined"

that isn't really working in some cases...

foo === undefined
(or foo !== undefined)

would be better.

Any thoughts ?

--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to