diff --git a/index.js b/index.js index 559c299..3af29cb 100644 --- a/index.js +++ b/index.js @@ -138,7 +138,6 @@ export class AbstractSlickCarousel extends WebPluginInterface { } else { if (this.firstInitialize) { this._setup(); - this.firstInitialize = false; this._beforeInitialize(); } @@ -147,6 +146,7 @@ export class AbstractSlickCarousel extends WebPluginInterface { if (this.firstInitialize) { this._afterInitialize(); + this.firstInitialize = false; } } } diff --git a/package.json b/package.json index 4ae2219..10718ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-plugin-abstract-slick-carousel", - "version": "3.0.1", + "version": "3.0.2", "description": "", "main": "index.js", "scripts": {