Skip to content

Commit

Permalink
Merge pull request #546 from antila/master
Browse files Browse the repository at this point in the history
"TypeError: parsers[j] is undefined" in tablesorter.js line 302
  • Loading branch information
Mottie committed Mar 17, 2014
2 parents 694357c + 3a8666f commit 86b7ce0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86b7ce0

Please sign in to comment.