From 5e56b12d8501ead4b1389e62dfa4b738f3a834ab Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 5 Dec 2012 16:55:27 -0500 Subject: [PATCH] Formatting and jshint --- js/id/graph/entity.js | 6 +++++- js/id/modes/select.js | 1 + js/id/util.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/id/graph/entity.js b/js/id/graph/entity.js index 2159cab47..b0019f18d 100644 --- a/js/id/graph/entity.js +++ b/js/id/graph/entity.js @@ -33,7 +33,11 @@ iD.Entity.prototype = { hasInterestingTags: function() { return _.keys(this.tags).some(function (key) { - return key != "attribution" && key != "created_by" && key != "source" && key != 'odbl' && key.indexOf('tiger:') != 0; + return key != "attribution" && + key != "created_by" && + key != "source" && + key != 'odbl' && + key.indexOf('tiger:') !== 0; }); } }; diff --git a/js/id/modes/select.js b/js/id/modes/select.js index f1b6953c6..073dff191 100644 --- a/js/id/modes/select.js +++ b/js/id/modes/select.js @@ -36,6 +36,7 @@ iD.modes.Select = function (entity) { switch (entity.type) { case 'way': mode.history.perform(iD.actions.DeleteWay(entity)); + break; case 'node': mode.history.perform(iD.actions.DeleteNode(entity)); } diff --git a/js/id/util.js b/js/id/util.js index a39d2db75..bcde828ea 100644 --- a/js/id/util.js +++ b/js/id/util.js @@ -80,7 +80,7 @@ iD.util.geo.roundCoords = function(c) { iD.util.geo.interp = function(p1, p2, t) { return [p1[0] + (p2[0] - p1[0]) * t, - p1[1] + (p2[1] - p1[1]) * t] + p1[1] + (p2[1] - p1[1]) * t]; }; iD.util.geo.dist = function(a, b) {