Skip to content

Commit ef898d2

Browse files
Update assets/js/tabs.js based on suggested change
Better function decleration Co-authored-by: Niels Bauman <[email protected]>
1 parent f9c5006 commit ef898d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: assets/js/tabs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ function removeActiveClasses(ulElement) {
66
});
77
}
88

9-
const getChildPosition = function (element) {
9+
function getChildPosition(element) {
10+
1011
var parent = element.parentNode;
1112
var i = 0;
1213
for (var i = 0; i < parent.children.length; i++) {

0 commit comments

Comments
 (0)