mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Merge pull request #546 from antila/master
"TypeError: parsers[j] is undefined" in tablesorter.js line 302
This commit is contained in:
commit
86b7ce09e2
@ -296,6 +296,12 @@
|
||||
}
|
||||
tc.cache[k].row.push(c);
|
||||
for (j = 0; j < totalCells; ++j) {
|
||||
if (typeof parsers[j] === 'undefined') {
|
||||
if (tc.debug) {
|
||||
log('No parser found for cell:', c[0].cells[j], 'does it have a header?');
|
||||
}
|
||||
continue;
|
||||
}
|
||||
t = getElementText(table, c[0].cells[j], j);
|
||||
// allow parsing if the string is empty, previously parsing would change it to zero,
|
||||
// in case the parser needs to extract data from the table cell attributes
|
||||
|
Loading…
Reference in New Issue
Block a user