Skip to content

Commit 60c8cf3

Browse files
[build]
1 parent 00c2b64 commit 60c8cf3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dist/VirtualList.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var VirtualList = React.createClass({displayName: "VirtualList",
101101
this.onScrollDebounced = utils.debounce(this.onScroll, nextProps.scrollDelay, false);
102102

103103
nextProps.container.addEventListener('scroll', this.onScrollDebounced);
104-
104+
105105
this.setState(state);
106106
},
107107
componentWillMount: function() {
@@ -163,7 +163,6 @@ VirtualList.getItems = function(viewBox, listBox, itemBuffer, itemHeight, itemCo
163163

164164
var listViewBox = VirtualList.getBox(viewBox, listBox);
165165

166-
//todo add itemBuffer here instead
167166
var firstItemIndex = Math.max(0, Math.floor(listViewBox.top / itemHeight) - itemBuffer);
168167
var lastItemIndex = Math.min(itemCount, Math.ceil(listViewBox.bottom / itemHeight) + itemBuffer) - 1;
169168

@@ -175,8 +174,6 @@ VirtualList.getItems = function(viewBox, listBox, itemBuffer, itemHeight, itemCo
175174
itemsInView: itemsInView,
176175
};
177176

178-
//console.log('getItems.result', result);
179-
180177
return result;
181178
};
182179

0 commit comments

Comments
 (0)