lib/SelectorMatchers.js
function(ruleClassName, elementClassName){
        if(!elementClassName){
            return false;
        }
        for(var i = 0; i < ruleClassName.length; i++){
            if((' ' + elementClassName + ' ').indexOf(' ' + ruleClassName[i] + ' ') === -1){
                return false;
            }
        }
        return true;
    }
function(ruleClassName, elementClassName){
        if(!elementClassName){
            return false;
        }
        for(var i = 0; i < ruleClassName.length; i++){
            if((' ' + elementClassName + ' ').indexOf(' ' + ruleClassName[i] + ' ') === -1){
                return false;
            }
        }
        return true;
    }
function ( ruleClassName , elementClassName ) { if ( ! elementClassName ) { return false ; } for ( var i = 0 ; i < ruleClassName . length ; i ++ ) { if ( ( ' ' + elementClassName + ' ' ) . indexOf ( ' ' + ruleClassName [ i ] + ' ' ) === - 1 ) { return false ; } } return true ; }
Checks if the element class names match the provided CSS selector names
@param  {Array}  ruleClassName    Class name of CSS selector
@param  {String} elementClassName Class name of element
@return {Bool}                    Whether element class names CSS selectors
Checks if the element class names match the provided CSS selector names