On Jul 21, 2:15 pm, "Rob Desbois" <[EMAIL PROTECTED]> wrote: > Try this: > > if (typeof myFunction === "undefined") {
Shouldn't that be: if( typeof myFunction === undefined ) or if( typeof myFunction == "undefined" ) ??? i don't think === is what you want when comparing different string instances, whereas === is preferred for null/undefined comparisons (according to Doug Crockford, anyway).