Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 45a3c06e8fd4ac04f5d914ecf5d2e25148160b3b 1 parent 3f47d3b
@jeresig jeresig authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/jquery/jquery.js
View
12 src/jquery/jquery.js
@@ -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,12 +1237,12 @@ jQuery.extend({
);
}
}
- }
- if ( t ) {
- var val = jQuery.filter(t,r);
- ret = r = val.r;
- t = jQuery.trim(val.t);
+ if ( t ) {
+ var val = jQuery.filter(t,r);
+ ret = r = val.r;
+ t = jQuery.trim(val.t);
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.