- if (match(cell)) {
- if (!matchloc) matchloc = [loc];
- matchloc[1] = loc + cell.colSpan;
- filtercell(table.children.item(x), true, action); // colgroup
- }
+ var res = match(cell);
+ for (var i = loc; i < loc + cell.colSpan; i++) matchloc[i] = res;
+ filtercell(table.children.item(x), res, action); // colgroup