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

NaN on iOS #216

Open
pyenka opened this issue Jul 19, 2017 · 1 comment
Open

NaN on iOS #216

pyenka opened this issue Jul 19, 2017 · 1 comment

Comments

@pyenka
Copy link

pyenka commented Jul 19, 2017

Hello I have an issue on iOS(only)

File: dagre/dist/dagre.core.js
Line: 2137
xs = _.mapValues(xs, function(x) { return -x; });
When x = 0 then function returns -0 and after putting this value to Array it filled with NaNs
result={1:"test"}
result[5]=-0
result={0:NaN, 1:"test", 2:NaN, 3:NaN, 4:NaN, 5:-0}

Used iOS version 10.3.2

Thanks
Pavel

@pyenka
Copy link
Author

pyenka commented Jul 20, 2017

Could you add smth like "x!==0?-x:x" ?

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

1 participant