mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 15:34:49 +02:00
Fix jshint problems.
This commit is contained in:
@@ -135,8 +135,8 @@ iD.Graph.prototype = {
|
||||
oldentity = graph.entities[id];
|
||||
if (entity !== oldentity) {
|
||||
if (entity && entity.type === 'way') {
|
||||
result = oldentity
|
||||
? result
|
||||
result = oldentity ?
|
||||
result
|
||||
.concat(_.difference(entity.nodes, oldentity.nodes))
|
||||
.concat(_.difference(oldentity.nodes, entity.nodes))
|
||||
: result.concat(entity.nodes);
|
||||
|
||||
@@ -113,7 +113,7 @@ iD.Map = function() {
|
||||
if (Math.log(d3.event.scale / Math.LN2 - 8) < minzoom + 1) {
|
||||
iD.flash()
|
||||
.select('.content')
|
||||
.text('Cannot zoom out further in current mode.')
|
||||
.text('Cannot zoom out further in current mode.');
|
||||
return map.zoom(16);
|
||||
}
|
||||
var fast = (d3.event.scale === projection.scale() && fastEnabled);
|
||||
|
||||
+2
-2
@@ -2,13 +2,13 @@ iD.svg = {
|
||||
RoundProjection: function (projection) {
|
||||
return function (d) {
|
||||
return iD.util.geo.roundCoords(projection(d));
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
PointTransform: function (projection) {
|
||||
projection = iD.svg.RoundProjection(projection);
|
||||
return function (entity) {
|
||||
return 'translate(' + projection(entity.loc) + ')';
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -97,5 +97,5 @@ iD.svg.Lines = function() {
|
||||
// adding longer text than necessary, since overflow is hidden
|
||||
return (new Array(Math.floor(lengths[d.id] * 1.1))).join(arrowtext);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user