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

closeChildTable uncaught exception #570

Closed
chrisnawrot opened this issue May 3, 2013 · 1 comment
Closed

closeChildTable uncaught exception #570

chrisnawrot opened this issue May 3, 2013 · 1 comment
Labels
Milestone

Comments

@chrisnawrot
Copy link

Reproduction on a jTable with a child table:

1 - expand a child table on a row (I had zero child records)
2 - delete the parent row
3 - an uncaught exception occurs:
"cannot call methods on jtable prior to initialization; attempted to call method 'destroy'"

Occurs from line 4659 in jquery.jtable.js, instruction is:
$childTable.jtable('destroy');

My current work-around is to surround the aforementioned instruction in a try/catch.

Thanks,
Chris

@hikalkan
Copy link
Member

I solved it by removing self.closeChildTable($row); line from _removeRowsFromTable method. Will be released with 2.3.1

hikalkan added a commit that referenced this issue Sep 21, 2013
Bugfixes (#161, #254, #357, #570, #822) and localizations.
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