Permalink
Browse files

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

…pe has been extended.
  • Loading branch information...
1 parent 8288eb6 commit 5b42d6bda060d72ec0c10d1ecdd10d87d6f92f4b @mleibman committed Jun 22, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 slick.grid.js
View
@@ -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.