Skip to content

Commit f5ef1ca

Browse files
committed
fix(swiper): change var to let to avoid variable shadowing
1 parent 830f885 commit f5ef1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/slides/swiper/swiper-zoom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export function resetZoomEvents(s: Slides, plt: Platform) {
462462

463463
// Scale image
464464
if (s._supportGestures) {
465-
for (var i = 0; i < slides.length; i++) {
465+
for (let i = 0; i < slides.length; i++) {
466466
slide = slides[i];
467467
// gesturestart
468468
plt.registerListener(slide, 'gesturestart', (ev: TouchEvent) => {

0 commit comments

Comments
 (0)