Change let to var
This commit is contained in:
parent
a41d9f222f
commit
39e5470d24
|
@ -37,8 +37,8 @@ qs('.g-carousel .next')
|
|||
})
|
||||
|
||||
// on dot click
|
||||
for (let i = 0; i < dots.length; i++) {
|
||||
for (var i = 0; i < dots.length; i++) {
|
||||
dots[i].addEventListener('click', function() {
|
||||
carousel.goTo(i)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue