1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 06:20:15 +02:00

Simplify checks.

This commit is contained in:
XhmikosR
2019-02-13 21:40:15 +02:00
parent 4b7c058a25
commit 30861cbc6d
3 changed files with 6 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ const Manipulator = {
},
toggleClass(element, className) {
if (typeof element === 'undefined' || element === null) {
if (!element) {
return
}