Skip to content

Commit 745041f

Browse files
Update assets/js/tabs.js based on suggested change
Using const for objects Co-authored-by: Niels Bauman <[email protected]>
1 parent ef898d2 commit 745041f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: assets/js/tabs.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ window.addEventListener('load', function () {
2626
link.addEventListener('click', function (event) {
2727
event.preventDefault();
2828

29-
liTab = link.parentNode;
30-
ulTab = liTab.parentNode;
31-
position = getChildPosition(liTab);
29+
const liTab = link.parentNode;
30+
const ulTab = liTab.parentNode;
31+
const position = getChildPosition(liTab);
3232
if (liTab.className.includes('active')) {
3333
return;
3434
}

0 commit comments

Comments
 (0)