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

Type issue with v2.11.1 #387

Closed
lindonb opened this issue Oct 14, 2013 · 2 comments
Closed

Type issue with v2.11.1 #387

lindonb opened this issue Oct 14, 2013 · 2 comments

Comments

@lindonb
Copy link

lindonb commented Oct 14, 2013

After upgrading to 2.11.1 I'm getting the following error for line 532 of jquery.tablesorter.pager.js:
'undefined is not an object (evaluating 't.page')

Line 532 has the following: p.page = isNaN(t.page) ? p.page : t.page;

Tablesorter seems to work fine (ie pager, sorting, filtering, etc.) but other javascript elements on the page no longer work.

I would post to jsfiddle but I'm working within another package so it's not easy to recreate - hoping this is easy to see and fix.
Thanks,

@Mottie
Copy link
Owner

Mottie commented Oct 14, 2013

Hi @lindonb!

Hmm, try changing line 531 to:

t = ts.storage(table, 'tablesorter-pager') || {};

@lindonb
Copy link
Author

lindonb commented Oct 15, 2013

Hi @Mottie - that seemed to do the trick, thanks!

@Mottie Mottie closed this as completed in a386ae2 Oct 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants