Fix jshint problems.

This commit is contained in:
Tom MacWright
2013-01-16 12:39:35 -05:00
parent 110d60d739
commit 87c341d7e0
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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);
});
}
};
};