Created
September 6, 2018 13:54
-
-
Save nathanchicken/8598a2260aec02f5cf9bcc9c1cbd079d to your computer and use it in GitHub Desktop.
Get a classlist to sense check purge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var purgeList = []; | |
var container = "[data-driver-stats]"; | |
$( container ).each( function() { | |
$(this).find('*').each( function() { | |
this.classList.forEach( l => { | |
if ( purgeList.indexOf( l ) === -1 ) { | |
purgeList.push( l ); | |
} | |
}) | |
} ); | |
}); | |
console.log( purgeList.join(" ") ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment