Skip to content

Commit

Permalink
refactor(core): updateSlides move swiper = this
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky committed Feb 17, 2021
1 parent 6744917 commit 02bce0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/core/update/updateSlides.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;

Expand Down

0 comments on commit 02bce0d

Please sign in to comment.