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

enable eslint on marker class #3831

Merged
merged 2 commits into from Dec 19, 2016
Merged

enable eslint on marker class #3831

merged 2 commits into from Dec 19, 2016

Conversation

mollymerp
Copy link
Contributor

@mollymerp mollymerp commented Dec 19, 2016

eslint was disabled which resulted in #3830 not being caught by the test. this re-enables and makes the necessary syntax changes.

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

cc @mourner

// because rouding the coordinates at every `move` event causes stuttered zooming
// we only round them when _update is called with `moveend` or when its called with
// no arguments (when the Marker is initialized or Marker#setLngLat is invoked).
if (!e || e.type === "moveend") pos = pos.round();
DOM.setTransform(this._element, 'translate(' + pos.x + 'px,' + pos.y + 'px)');
DOM.setTransform(this._element, `translate(' + ${pos.x} + 'px,' + ${pos.y} + 'px)`);
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look right. You probably want translate(${pos.x}px, ...

@mourner mourner merged commit 0d17a24 into master Dec 19, 2016
@mourner mourner deleted the marker-eslint branch December 19, 2016 18:36
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.

None yet

2 participants