Added fix for broken $("../..",foo).
This commit is contained in:
parent
3f47d3b8f5
commit
45a3c06e8f
1 changed files with 7 additions and 5 deletions
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
|
@ -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,7 +1237,6 @@ jQuery.extend({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( t ) {
|
if ( t ) {
|
||||||
var val = jQuery.filter(t,r);
|
var val = jQuery.filter(t,r);
|
||||||
|
@ -1243,6 +1244,7 @@ jQuery.extend({
|
||||||
t = jQuery.trim(val.t);
|
t = jQuery.trim(val.t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( ret && ret[0] == context ) ret.shift();
|
if ( ret && ret[0] == context ) ret.shift();
|
||||||
done = jQuery.merge( done, ret );
|
done = jQuery.merge( done, ret );
|
||||||
|
|
Loading…
Add table
Reference in a new issue