Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Aug 31, 2006
1 parent 3f47d3b commit 45a3c06e8fd4ac04f5d914ecf5d2e25148160b3b
Showing with 7 additions and 5 deletions.
  1. +7 −5 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);
}
}
}

0 comments on commit 45a3c06

Please sign in to comment.
You can’t perform that action at this time.