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
12
src/jquery/jquery.js
vendored
12
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,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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user