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

Avoid Uncaught TypeError #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

georgeOsdDev
Copy link

When JSON contains record with null or undefined element,
Sort by string will fail with Uncaught TypeError: Cannot read property 'toLowerCase' of null
And dynatable process will hang up.

This PR fix that error.

I know that we can use custom sort function. But it would be nice if dynatable handle unexpected input.
http://jsfiddle.net/georgeosddev/cR3p8/2/

@theodorejb
Copy link
Contributor

Whoa, I totally didn't see this PR before I created #125. My PR also fixes the issue where reverse sort persists after cycling through ascending/descending order.

@hadees
Copy link

hadees commented Aug 7, 2014

@alfajango please merge this in

@vanhineam
Copy link

This is still an issue many months later. Please merge this.

@prune998
Copy link

Same bug here... Well, it's just a commit dude ! 2 lines to change !!!! COME ON !

@prune998
Copy link

seems dynatables is really dead !

@JangoSteve
Copy link
Member

Not dead, just been busy. Thanks for taking the time to look at this and submit a pull request. I think I like the solution in #125 for this issue as it's a bit cleaner and doesn't modify the original value unnecessarily.

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

Successfully merging this pull request may close these issues.

6 participants