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 {
oncreate () {
this.observe('innerHeight', throttle(innerHeight => {
//console.log('setting innerHeight', innerHeight)
this.store.set({
innerHeight: innerHeight
})
}, THROTTLE_TIME))
this.observe('items', (items) => {
//console.log('setting items')
this.store.set({
'items': items
})

View file

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

View file

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