Skip to content
Browse files

Expose origPOS for use in jQuery traversing. Fixes jQuery bug#10970

  • Loading branch information...
1 parent 9358740 commit 423f35af8bf43f3f07bb17284e21608f08372c22 @timmywil committed Dec 12, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 sizzle.js
View
3 sizzle.js
@@ -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 );

0 comments on commit 423f35a

Please sign in to comment.
Something went wrong with that request. Please try again.