#69 : Code cleanup

This commit is contained in:
Vadim
2021-09-08 18:28:48 +03:00
parent dc0a623c7f
commit b42d272080
5 changed files with 125 additions and 169 deletions

View File

@@ -21,11 +21,11 @@
getCurrentPageIndexWithoutClones,
getPagesCountWithoutClones,
getClonesCount,
getPartialPageSize,
} from '../../utils/page'
import { get } from '../../utils/object'
import { ProgressManager } from '../../utils/ProgressManager'
import { wait } from '../../utils/interval'
import { getIsOdd, getPartialPageSize } from '../../utils/math'
const dispatch = createEventDispatcher()
@@ -210,7 +210,6 @@
}
function addClones() {
console.log('addClones', clonesCount)
const {
clonesToAppend,
clonesToPrepend,
@@ -250,7 +249,6 @@
await tick()
cleanupFns.push(store.subscribe(value => {
currentPageIndex = value.currentPageIndex
console.log('currentPageIndex', currentPageIndex)
}))
cleanupFns.push(() => progressManager.reset())
if (pagesContainer && pageWindowElement) {