> >  if (!window.GBrowserIsCompatible || !GBrowserIsCompatible()) return
this;

> Is also possible?
> 
> if ( !(window.GBrowserIsCompatible && GBrowserIsCompatible()) )
> 
> If you don't say yes my headache gets worse!

Don't get a headache, Klaus, that is fine and reads better too. After all,

 !( a && b )  ===  ( !a || !b )

I think this is my favorite now:

 var bc = window.GBrowserIsCompatible;
 if( !( bc && bc() ) ) return this;

-Mike




_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to