Skip to content

Instantly share code, notes, and snippets.

@matsko
Last active August 29, 2015 13:56
Show Gist options
  • Save matsko/8983904 to your computer and use it in GitHub Desktop.
Save matsko/8983904 to your computer and use it in GitHub Desktop.
hasClass : function(className, sequenceID) {
sequenceID = sequenceID || index.length;
var count = hasClass(element, className) ? 1 : 0;
for(var i = 0; i <= sequenceID; i++) {
var lookup = index[i];
count += lookup[className] ? lookup[className] : 0;
}
return count > 0;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment