From 87c341d7e0518cd75b339e481a02f8fba4650989 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 16 Jan 2013 12:39:35 -0500 Subject: [PATCH] Fix jshint problems. --- js/id/graph/graph.js | 4 ++-- js/id/renderer/map.js | 2 +- js/id/svg.js | 4 ++-- js/id/svg/lines.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/id/graph/graph.js b/js/id/graph/graph.js index 9b6de7219..ee15d68c9 100644 --- a/js/id/graph/graph.js +++ b/js/id/graph/graph.js @@ -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); diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 3f64886b6..ea4b901f8 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -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); diff --git a/js/id/svg.js b/js/id/svg.js index fd648f5db..5860126e9 100644 --- a/js/id/svg.js +++ b/js/id/svg.js @@ -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) + ')'; - } + }; } }; diff --git a/js/id/svg/lines.js b/js/id/svg/lines.js index 3a64c1b28..925d8c968 100644 --- a/js/id/svg/lines.js +++ b/js/id/svg/lines.js @@ -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); }); - } + }; };