mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-28 06:20:15 +02:00
Simplify checks.
This commit is contained in:
@@ -76,7 +76,7 @@ const Manipulator = {
|
||||
},
|
||||
|
||||
toggleClass(element, className) {
|
||||
if (typeof element === 'undefined' || element === null) {
|
||||
if (!element) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user