Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c.parsers undefined @ line 719. #179

Closed
Spudley opened this issue Nov 21, 2012 · 0 comments
Closed

c.parsers undefined @ line 719. #179

Spudley opened this issue Nov 21, 2012 · 0 comments
Labels

Comments

@Spudley
Copy link

Spudley commented Nov 21, 2012

Hi.

As originally reported here http://stackoverflow.com/questions/12335340/jquery-tablesorter-js-error-line-600

It is possible to crash tablesorter with c.parsers being undefined.

This occurs under the following circumstances:

//Table is created with zero rows.
$('#container').append('<table><thead><tr><th>ID</th><th>Name</th></tr></thead><tbody></tbody></table>');
//Table is set as a tablesorter, with minimal options.
$('#container table').tablesorter();
//Attempt to add rows...
$row=$('<tr><td>1</td><td>First row</td></tr>');
$('#container table tbody').append($row).trigger('addRows',[$row,true]);

This causes tablesorter to crash at line 719 with c.parsers undefined.

I have worked around this issue by populating at least the initial data prior to calling .tablesorter().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants