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

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

12
src/jquery/jquery.js vendored
View File

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