@@ -372,7 +372,7 @@ export default {
372372 }
373373 },
374374 slideHandler(index, dontAnimate = false) {
375- const { asNavFor, currentSlide, beforeChange, speed, afterChange } = this.$props;
375+ const { asNavFor, beforeChange, speed, afterChange } = this.$props;
376376 const { state, nextState } = slideHandler({
377377 index,
378378 ...this.$props,
@@ -381,7 +381,7 @@ export default {
381381 useCSS: this.useCSS && !dontAnimate,
382382 });
383383 if (!state) return;
384- beforeChange && beforeChange(currentSlide, state.currentSlide);
384+ beforeChange && beforeChange(this. currentSlide, state.currentSlide);
385385 const slidesToLoad = state.lazyLoadedList.filter(
386386 value => this.lazyLoadedList.indexOf(value) < 0,
387387 );
@@ -390,7 +390,7 @@ export default {
390390 }
391391 if (!this.$props.waitForAnimate && this.animationEndCallback) {
392392 clearTimeout(this.animationEndCallback);
393- afterChange && afterChange(currentSlide);
393+ afterChange && afterChange(this. currentSlide);
394394 delete this.animationEndCallback;
395395 }
396396 this.setState(state, () => {
0 commit comments