This commit is contained in:
Claude Brisson
2023-12-27 08:49:16 +01:00
parent 0025b3c6b1
commit dd02ac4253

View File

@@ -47,6 +47,7 @@ Element.prototype.toggleClass = function(className) {
return this;
}
NodeList.prototype.hasClass = function(className) {
if (this.length === 0) return false;
return this.item(0).classList.contains(className);
}
Element.prototype.hasClass = function(className) {