Enable some more eslint rules from iD rules

This commit is contained in:
Tom Hughes 2019-04-06 15:48:51 +01:00
parent 07aa5ade67
commit 87127d41e9
8 changed files with 48 additions and 18 deletions

View file

@ -334,7 +334,7 @@ $(document).ready(function () {
};
function addObject(type, id, center) {
map.addObject({type: type, id: parseInt(id)}, function(bounds) {
map.addObject({type: type, id: parseInt(id, 10)}, function(bounds) {
if (!window.location.hash && bounds.isValid() &&
(center || !map.getBounds().contains(bounds))) {
OSM.router.withoutMoveListener(function () {