Improve speed of Select All in the results grid. Fixes #2522

This commit is contained in:
Harshal Dhumal 2017-06-30 09:54:31 +01:00 committed by Dave Page
parent c98b64fd82
commit 2d65312910

View File

@ -94,7 +94,7 @@ define(['slickgrid'], function () {
var indexArray = [];
ranges.forEach(function (range) {
if (rangeHasCompleteRows(grid, range))
indexArray = _.union(indexArray, _.range(range.fromRow, range.toRow + 1));
indexArray = indexArray.concat(_.range(range.fromRow, range.toRow + 1));
});
return indexArray;