Skip to content

Commit

Permalink
Convert dom.removeClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Camille TJHOA committed Feb 7, 2022
1 parent 9390de7 commit 0f4cbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
return element.classList.add.apply(element.classList, classNames.split(' '));
};
dom.removeClass = function (element, classNames) {
jQuery(element).removeClass(classNames);
return element.classList.remove.apply(element.classList, classNames.split(' '));
};
dom.preventDefault = function (e) {
e.preventDefault();
Expand Down

0 comments on commit 0f4cbed

Please sign in to comment.