Hmm. No idea what that 'r' property was. Changing that line to
if ( jQuery.filter( expr, [i] ).length ) break; seems to fix it. or use this: $.fn.until = function(end){ end = $(end)[0]; var n = this.next(), h = $('nada'); while( n[0] != end ) { h = h.add(prox); n = n.next(); } return this.add(h); }; cheers, - ricardo On Jan 19, 10:20 pm, JLundell <jlund...@pobox.com> wrote: > Well, almost. I'm getting an undefined on this line, I think on the > length call: > > if ( jQuery.filter( expr, [i] ).r.length ) break;