Skip to content

Commit

Permalink
Fix mleibman#374 by ignoring subsequent events on nodes that no longe…
Browse files Browse the repository at this point in the history
…r exist.
  • Loading branch information
mleibman committed Jun 13, 2012
1 parent 8b6664c commit 9a3223c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions slick.grid.js
Expand Up @@ -1960,10 +1960,17 @@ if (typeof Slick === "undefined") {
return null;
}

return {
row: getRowFromNode($cell[0].parentNode),
cell: getCellFromNode($cell[0])
};
var row = getRowFromNode($cell[0].parentNode);
var cell = getCellFromNode($cell[0]);

if (row == null || cell == null) {
return null;
} else {
return {
"row": row,
"cell": cell
};
}
}

function getCellNodeBox(row, cell) {
Expand Down

0 comments on commit 9a3223c

Please sign in to comment.