Permalink
Browse files

Fix event test so it doesn't break without an event parameter

  • Loading branch information...
1 parent 6113cac commit 13c4df8a5a28bdfb801e4da52b83aad3b7834a0d @kriszyp committed May 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 OnDemandList.js
View
@@ -169,7 +169,7 @@ return declare([List, _StoreMixin], {
var grid = this,
scrollNode = grid.bodyNode,
transform = grid.contentNode.style.webkitTransform,
- visibleTop = event.pseudoTouch ? scrollNode.instantScrollTop : scrollNode.scrollTop,
+ visibleTop = event && event.pseudoTouch ? scrollNode.instantScrollTop : scrollNode.scrollTop,
visibleBottom = scrollNode.offsetHeight + visibleTop,
priorPreload, preloadNode, preload = grid.preload,
lastScrollTop = grid.lastScrollTop,

0 comments on commit 13c4df8

Please sign in to comment.