Skip to content

Commit 84906f3

Browse files
Merge pull request #5 from dutchenkoOleg/master
fix `destroy()` method
2 parents b5d604b + a2c5488 commit 84906f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @module AbstractSlickCarousel
55
* @author OlegDutchenko <dutchenko.o.dev@gmail.com>
6-
* @version 3.0.0
6+
* @version 3.0.1
77
*/
88

99
// ----------------------------------------
@@ -174,7 +174,7 @@ export class AbstractSlickCarousel extends WebPluginInterface {
174174

175175
destroy () {
176176
if (this.isInitialized) {
177-
this.$list.unslick();
177+
this.$list.slick('unslick');
178178
this.isInitialized = false;
179179
}
180180
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-plugin-abstract-slick-carousel",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)