Merge pull request #546 from antila/master

"TypeError: parsers[j] is undefined" in tablesorter.js line 302
This commit is contained in:
Rob G 2014-03-17 12:11:50 -05:00
commit 86b7ce09e2

View File

@ -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