From 88e22ec3ef796f1f3b7ad95de0ba93aa873a15be Mon Sep 17 00:00:00 2001 From: Sebastien Hattry Date: Thu, 25 Nov 2021 14:46:50 +0100 Subject: [PATCH] fix carrousel bug --- public/js/caroussel.js | 2 +- resources/js/caroussel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/caroussel.js b/public/js/caroussel.js index 13f34ee..a6c5166 100644 --- a/public/js/caroussel.js +++ b/public/js/caroussel.js @@ -2338,7 +2338,7 @@ var Carrousel = /*#__PURE__*/function () { }); // Interval if (this.options.play) { - playpause = setInterval(function () { + var playpause = setInterval(function () { return _this.next(); }, this.options.interval); } diff --git a/resources/js/caroussel.js b/resources/js/caroussel.js index f7f0fd2..3d45835 100644 --- a/resources/js/caroussel.js +++ b/resources/js/caroussel.js @@ -74,7 +74,7 @@ class Carrousel { // Interval if (this.options.play) { - playpause = setInterval(() => this.next(), this.options.interval); + let playpause = setInterval(() => this.next(), this.options.interval); } }