Enable some more eslint rules from iD rules
This commit is contained in:
parent
07aa5ade67
commit
87127d41e9
8 changed files with 48 additions and 18 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue