[jQuery] Re: puzzling black hole in $(...).hasClass()?

2008-09-19 Thread ~flow
thank you so much. i guess an exception should be thrown---some obvious action taken. sometimes you do something wrong, and all you get is a pointer to an non-obvious location with your minified jquery.js. a message would be so much more helpful. and this particular case is much worse as execution

[jQuery] Re: puzzling black hole in $(...).hasClass()?

2008-09-18 Thread Dave Methvin
> the argument to `hasClass` is problematic: it uses selector-syntax and > starts with a dot. this is a mistake that easily results from copy-n- > pasting code. acceptable reactions of jQuery to this would be > responding with something like `null`, `undefined`, or `false`, or > raising an excepti

[jQuery] Re: puzzling black hole in $(...).hasClass()?

2008-09-18 Thread ricardobeat
Most jQuery functions fail silently, that's by design. You must write your own function if you want to validate the class name being passed. cheers, ricardo On Sep 18, 11:03 am, "~flow" <[EMAIL PROTECTED]> wrote: > hi all, > > i’m doing this in ffx2 and firebug1.05; i have a local document > loa