Permalink
Browse files

Reverse order of setting ran to false so that the throttled function …

…can call its own throttler and ensure that it will run itself again eventually. This fixes paging when the minRowsPerPage/maxRowsPerPage is less than the size of the visible area, allowing the processScroll to keep calling itself until it has covered the visible area.
  • Loading branch information...
1 parent b7491c8 commit c827192bd914610ad7227038c03b60d652e618e6 @kriszyp committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 util/misc.js
View
2 util/misc.js
@@ -27,8 +27,8 @@ define([], function(){
ran = true;
var a = arguments;
setTimeout(function(){
- cb.apply(context, a);
ran = false;
+ cb.apply(context, a);
}, delay);
}
},

0 comments on commit c827192

Please sign in to comment.