Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion classList.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ if (objCtr.defineProperty) {
var _toggle = DOMTokenList.prototype.toggle;

DOMTokenList.prototype.toggle = function(token, force) {
if (1 in arguments && !this.contains(token) === !force) {
var _ntoken = !this.contains(token),
_nforce = !force;
if (1 in arguments && _ntoken === _nforce) {
return force;
} else {
return _toggle.call(this, token);
Expand Down
2 changes: 1 addition & 1 deletion classList.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.