Skip to content

Conversation

@w33ble
Copy link
Contributor

@w33ble w33ble commented Mar 1, 2016

#5236 for 4.x

var index = _.random(mapData.features.length - 1);
var feature = mapData.features[index];
var featureValue = parseInt(feature.properties.value / max * 100);
var featureValue = parseInt(feature.properties.value / max);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these parseInt()s needs to be ditched. They were removed in the original PR.

@epixa epixa added needs updates and removed review labels Mar 1, 2016
@epixa epixa assigned w33ble and unassigned epixa Mar 1, 2016
@w33ble
Copy link
Contributor Author

w33ble commented Mar 1, 2016

@epixa yowsa. great catch, thanks!

@epixa epixa added the backport This PR is a backport of another PR label Mar 1, 2016
epixa added a commit that referenced this pull request Mar 1, 2016
@epixa epixa merged commit 5f52d74 into elastic:4.x Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR review v4.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants