Permalink
Browse files

Update Source/Interface/HtmlTable.Select.js

  • Loading branch information...
1 parent 5cc1462 commit 9d8e68d8842a3e62c1ffbd65d355f899e5d35e94 @DrHofman committed Oct 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Interface/HtmlTable.Select.js
@@ -172,7 +172,7 @@ HtmlTable = Class.refactor(HtmlTable, {
}
for (var i = startRow; i <= endRow; i++){
- if (this.options.selectHiddenRows || rows[i].isDisplayed()) this[method](rows[i], true);
+ if (rows[i] && (this.options.selectHiddenRows || rows[i].isDisplayed())) this[method](rows[i], true);
}
return this;

1 comment on commit 9d8e68d

@jfly
jfly commented on 9d8e68d Dec 16, 2011

I'm not sure this is the best fix for the problem. We should avoid having i be out of range in the first place. See #1081.

Please sign in to comment.