diff --git a/src/components/core/update/updateSlides.js b/src/components/core/update/updateSlides.js index ad15824e1..8c57023a3 100644 --- a/src/components/core/update/updateSlides.js +++ b/src/components/core/update/updateSlides.js @@ -2,8 +2,8 @@ import { getWindow } from 'ssr-window'; import { extend } from '../../../utils/utils'; export default function updateSlides() { + const swiper = this; const getDirectionLabel = (property) => { - const swiper = this; if (swiper.isHorizontal()) { return property; } @@ -23,7 +23,6 @@ export default function updateSlides() { return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0); }; - const swiper = this; const window = getWindow(); const params = swiper.params;