Added fix for broken $("../..",foo).

This commit is contained in:
John Resig 2006-08-31 05:16:50 +00:00
parent 3f47d3b8f5
commit 45a3c06e8f

View File

@ -1199,6 +1199,8 @@ jQuery.extend({
var foundToken = false;
for ( var i = 0; i < jQuery.token.length; i += 2 ) {
if ( foundToken ) continue;
var re = new RegExp("^(" + jQuery.token[i] + ")");
var m = re.exec(t);
@ -1235,7 +1237,6 @@ jQuery.extend({
);
}
}
}
if ( t ) {
var val = jQuery.filter(t,r);
@ -1243,6 +1244,7 @@ jQuery.extend({
t = jQuery.trim(val.t);
}
}
}
if ( ret && ret[0] == context ) ret.shift();
done = jQuery.merge( done, ret );