Hey Brian, try this:

jQuery.oldfind = jQuery.find;
jQuery.find = function(t,con){
    var f = jQuery.oldfind(t,con);
    if (f.length == 0) throw('Empty query');
}

cheers,
- ricardo

On Nov 5, 1:08 pm, brian <[EMAIL PROTECTED]> wrote:
> > It's not a failure to run a query and find nothing - that's a
> > perfectly valid use case.
>
> I understand where you are coming from on the querying side, but
> shouldn't calling a method on an empty object fail?  How can I fade
> in...nothing?
>
> I'm going to still think of this as a huge design flaw.
>
> There needs to be a way to specify that it should fail on empty
> results.  /s for strict or whatever.
>
> This post is for 1) bitching purposes and 2) indexing purposes so that
> future searchers find definitive proof that jquery fails silently and
> that this is not considered a bug, despite obvious appearances.

Reply via email to