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); } }