diff options
author | timmywil <timmywillisn@gmail.com> | 2012-07-02 11:30:22 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2012-07-02 11:34:26 -0400 |
commit | b418fa1f0937b5c92085778b0e935f94dcf46dbd (patch) | |
tree | 58dbddd71e008891025ec441603bc7965bb19e62 /src/traversing.js | |
parent | f71a6ec6cfe3f748a939eaa109e92b8a9bdac6cc (diff) | |
download | jquery-b418fa1f0937b5c92085778b0e935f94dcf46dbd.tar.gz jquery-b418fa1f0937b5c92085778b0e935f94dcf46dbd.zip |
UPDATE SIZZLE: completed rewrite for better things!
Remove reverse in traversing for comma selectors. Sizzle's handling of commas is now more consistent.
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/traversing.js b/src/traversing.js index 0cca81a0a..4a68ccb5e 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -1,7 +1,5 @@ var runtil = /Until$/, - rparentsprev = /^(?:parents|prevUntil|prevAll)/, - // Note: This RegExp should be improved, or likely pulled from Sizzle - rmultiselector = /,/, + rparentsprev = /^(?:parents|prev(?:Until|All))/, isSimple = /^.[^:#\[\.,]*$/, POS = jQuery.expr.match.globalPOS, // methods guaranteed to produce a unique set when starting from a unique set @@ -217,7 +215,7 @@ jQuery.each({ ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; - if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + if ( this.length > 1 && rparentsprev.test( name ) ) { ret = ret.reverse(); } |