Code cleanup

This commit is contained in:
Vadim
2021-11-30 13:46:42 +03:00
parent 6c8e16492b
commit f915c7b70d
3 changed files with 7 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ function createCarousel(onChange) {
},
})
const [data, methods, service] = simplyReactive(
const reactive = simplyReactive(
{
data: {
particlesCountWithoutClones: 0,
@@ -42,7 +42,7 @@ function createCarousel(onChange) {
focused: false,
autoplay: false,
autoplayDirection: 'next',
disabled: false, // Disable page change while animation is in progress
disabled: false, // disable page change while animation is in progress
durationMsInit: 1000,
durationMs: 1000,
offset: 0,
@@ -268,8 +268,9 @@ function createCarousel(onChange) {
onChange,
}
)
const [data, methods] = reactive
return [{ data, progressManager }, methods, service]
return [{ data, progressManager }, methods, reactive._internal]
}
export default createCarousel