mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added fix for broken $("../..",foo).
This commit is contained in:
parent
3f47d3b8f5
commit
45a3c06e8f
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user