mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
Remaining JS linting TODO (#29289)
* Enable and fix all occurrences with no-mixed-operators rule * Take care of the max-depth warning in button.js Signed-off-by: mhatvan <markus_hatvan@aon.at>
This commit is contained in:
+3
-3
@@ -78,9 +78,9 @@ class Tab {
|
||||
// Public
|
||||
|
||||
show() {
|
||||
if (this._element.parentNode &&
|
||||
if ((this._element.parentNode &&
|
||||
this._element.parentNode.nodeType === Node.ELEMENT_NODE &&
|
||||
this._element.classList.contains(ClassName.ACTIVE) ||
|
||||
this._element.classList.contains(ClassName.ACTIVE)) ||
|
||||
this._element.classList.contains(ClassName.DISABLED)) {
|
||||
return
|
||||
}
|
||||
@@ -108,7 +108,7 @@ class Tab {
|
||||
})
|
||||
|
||||
if (showEvent.defaultPrevented ||
|
||||
hideEvent !== null && hideEvent.defaultPrevented) {
|
||||
(hideEvent !== null && hideEvent.defaultPrevented)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user