remove console.logs

This commit is contained in:
Nolan Lawson 2018-01-16 17:47:25 -08:00
parent 725a47a799
commit 8d91c3a08d
3 changed files with 0 additions and 4 deletions

View file

@ -24,13 +24,11 @@
export default { export default {
oncreate () { oncreate () {
this.observe('innerHeight', throttle(innerHeight => { this.observe('innerHeight', throttle(innerHeight => {
//console.log('setting innerHeight', innerHeight)
this.store.set({ this.store.set({
innerHeight: innerHeight innerHeight: innerHeight
}) })
}, THROTTLE_TIME)) }, THROTTLE_TIME))
this.observe('items', (items) => { this.observe('items', (items) => {
//console.log('setting items')
this.store.set({ this.store.set({
'items': items 'items': items
}) })

View file

@ -15,7 +15,6 @@
export default { export default {
oncreate() { oncreate() {
'VirtualListItem: oncreate'
let itemHeights = this.store.get('itemHeights') let itemHeights = this.store.get('itemHeights')
let key = this.get('key') let key = this.get('key')
itemHeights[key] = this.refs.node.offsetHeight itemHeights[key] = this.refs.node.offsetHeight

View file

@ -22,7 +22,6 @@ virtualListStore.compute('visibleItems',
let height = itemHeights[key] || 0 let height = itemHeights[key] || 0
let currentOffset = totalOffset let currentOffset = totalOffset
totalOffset += height totalOffset += height
//console.log(key, 'scrollTop', scrollTop, 'currentOffset', currentOffset, 'innerHeight', innerHeight)
let isBelowViewport = (currentOffset < scrollTop) let isBelowViewport = (currentOffset < scrollTop)
if (isBelowViewport) { if (isBelowViewport) {
if (scrollTop - renderBuffer > currentOffset) { if (scrollTop - renderBuffer > currentOffset) {