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

filterFunc is not working properly with 0 value #522

Closed
aleshchenko opened this issue Jul 1, 2013 · 1 comment
Closed

filterFunc is not working properly with 0 value #522

aleshchenko opened this issue Jul 1, 2013 · 1 comment

Comments

@aleshchenko
Copy link

self.evalFilter -> filterFunc is not working properly when value is numeric 0.
Problem is here (line 2154, build 2.0.6):

if (!value || !result) {
    return false;
}

!0 returns true.
Should be fixed like this:

if (value === undefined || value === null || !result) {
    return false;
}
jonricaurte added a commit that referenced this issue Jul 1, 2013
@jonricaurte
Copy link
Contributor

Thanks. Should be fixed in latest 2.0.7.

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

No branches or pull requests

2 participants