Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(var i=0; i<=pages;i++) {
- top = i * config.ROWS_PER_PAGE;
- left = 0;
- width = config.DATA_PER_ROW;
- height = Math.min(config.ROWS_PER_PAGE, rowCount - i * config.ROWS_PER_PAGE);
- var ff = makeCallbackFunc(top, left, width, height);
- func.push(ff(function () {return true;}));
- }
- async.map(
- func,
- function(err, results){
- //???? Can not read the results output here!!??
- console.log('all calls called without any errors');
- });
- function makeCallbackFunc(top, left, width, height) {
- return function (callback) {
- console.log('top: ' + top + 'left: ' + left + 'width: ' + width + 'height: ' + height);
- return backendApi.getData([{
- qTop: top,
- qLeft: left,
- qWidth: width,
- qHeight: height
- }]);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement