remove trailing spaces
[jquery.git] / src / selector.js
index 517ea60..fcab67f 100644 (file)
@@ -17,19 +17,19 @@ var Sizzle = function(selector, context, results, seed) {
        if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
                return [];
        }
-       
+
        if ( !selector || typeof selector !== "string" ) {
                return results;
        }
 
        var parts = [], m, set, checkSet, check, mode, extra, prune = true, contextXML = isXML(context);
-       
+
        // Reset the position of the chunker regexp (start from head)
        chunker.lastIndex = 0;
-       
+
        while ( (m = chunker.exec(selector)) !== null ) {
                parts.push( m[1] );
-               
+
                if ( m[2] ) {
                        extra = RegExp.rightContext;
                        break;
@@ -158,7 +158,7 @@ Sizzle.find = function(expr, context, isXML){
 
        for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
                var type = Expr.order[i], match;
-               
+
                if ( (match = Expr.match[ type ].exec( expr )) ) {
                        var left = RegExp.leftContext;
 
@@ -420,7 +420,7 @@ var Expr = Sizzle.selectors = {
                },
                ATTR: function(match, curLoop, inplace, result, not, isXML){
                        var name = match[1].replace(/\\/g, "");
-                       
+
                        if ( !isXML && Expr.attrMap[name] ) {
                                match[1] = Expr.attrMap[name];
                        }
@@ -446,7 +446,7 @@ var Expr = Sizzle.selectors = {
                        } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
                                return true;
                        }
-                       
+
                        return match;
                },
                POS: function(match){
@@ -580,20 +580,20 @@ var Expr = Sizzle.selectors = {
                                        if ( first == 1 && last == 0 ) {
                                                return true;
                                        }
-                                       
+
                                        var doneName = match[0],
                                                parent = elem.parentNode;
-       
+
                                        if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
                                                var count = 0;
                                                for ( node = parent.firstChild; node; node = node.nextSibling ) {
                                                        if ( node.nodeType === 1 ) {
                                                                node.nodeIndex = ++count;
                                                        }
-                                               } 
+                                               }
                                                parent.sizcache = doneName;
                                        }
-                                       
+
                                        var diff = elem.nodeIndex - last;
                                        if ( first == 0 ) {
                                                return diff == 0;
@@ -666,7 +666,7 @@ var makeArray = function(array, results) {
                results.push.apply( results, array );
                return results;
        }
-       
+
        return array;
 };
 
@@ -811,7 +811,7 @@ if ( document.querySelectorAll ) (function(){
        if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
                return;
        }
-       
+
        Sizzle = function(query, context, extra, seed){
                context = context || document;
 
@@ -822,7 +822,7 @@ if ( document.querySelectorAll ) (function(){
                                return makeArray( context.querySelectorAll(query), extra );
                        } catch(e){}
                }
-               
+
                return oldSizzle(query, context, extra, seed);
        };