Skip to content

Commit

Permalink
Compilation: Expose tokenize for much profit
Browse files Browse the repository at this point in the history
Close gh-242
  • Loading branch information
timmywil committed Feb 20, 2014
1 parent 3e71fcf commit ccb809f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions dist/sizzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-02-05
* Date: 2014-02-20
*/
(function( window ) {

Expand All @@ -15,6 +15,7 @@ var i,
Expr,
getText,
isXML,
tokenize,
compile,
select,
outermostContext,
Expand Down Expand Up @@ -1427,7 +1428,7 @@ function setFilters() {}
setFilters.prototype = Expr.filters = Expr.pseudos;
Expr.setFilters = new setFilters();

function tokenize( selector, parseOnly ) {
tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
Expand Down Expand Up @@ -1492,7 +1493,7 @@ function tokenize( selector, parseOnly ) {
Sizzle.error( selector ) :
// Cache the tokens
tokenCache( selector, groups ).slice( 0 );
}
};

function toSelector( tokens ) {
var i = 0,
Expand Down
2 changes: 1 addition & 1 deletion dist/sizzle.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ccb809f

Please sign in to comment.