Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #380 - asyncPostProcess is fired too often when the array.prototy…

…pe has been extended.
  • Loading branch information...
commit 5b42d6bda060d72ec0c10d1ecdd10d87d6f92f4b 1 parent 8288eb6
@mleibman authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 slick.grid.js
View
7 slick.grid.js
@@ -1668,11 +1668,10 @@ if (typeof Slick === "undefined") {
}
ensureCellNodesInRowsCache(row);
- for (var columnIdx in cacheEntry.cellNodesByColumnIdx) {
- columnIdx = columnIdx | 0;
- var m = columns[columnIdx];
+ for (var i = 0; i < cacheEntry.cellNodesByColumnIdx.length; i++) {
+ var m = columns[i];
if (m.asyncPostRender) {
- var node = cacheEntry.cellNodesByColumnIdx[columnIdx];
+ var node = cacheEntry.cellNodesByColumnIdx[i];
m.asyncPostRender(node, postProcessFromRow, getDataItem(row), m);
}
}

0 comments on commit 5b42d6b

Please sign in to comment.
Something went wrong with that request. Please try again.