Skip to content

Commit

Permalink
Expose origPOS for use in jQuery traversing. Fixes jQuery bug#10970
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Dec 12, 2011
1 parent 9358740 commit 423f35a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sizzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,9 @@ for ( var type in Expr.match ) {
Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
}
// Expose origPOS
// "global" as in regardless of relation to brackets/parens
Expr.match.globalPOS = origPOS;

var makeArray = function( array, results ) {
array = Array.prototype.slice.call( array, 0 );
Expand Down

0 comments on commit 423f35a

Please sign in to comment.