Skip to content

Commit

Permalink
Fix mleibman#432 - check hasOwnProperty() in for (... in ...) loops o…
Browse files Browse the repository at this point in the history
…ver arrays.
  • Loading branch information
mleibman committed Aug 31, 2012
1 parent 62bc8bf commit b2c85c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,10 @@ if (typeof Slick === "undefined") {
ensureCellNodesInRowsCache(row);

for (var columnIdx in cacheEntry.cellNodesByColumnIdx) {
if (!cacheEntry.cellNodesByColumnIdx.hasOwnProperty(columnIdx)) {
continue;
}

columnIdx = columnIdx | 0;
var m = columns[columnIdx],
d = getDataItem(row),
Expand Down

0 comments on commit b2c85c8

Please sign in to comment.