From 5e328435e6ad036a91e99196b95570e2d41a1bf2 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 7 Feb 2013 16:58:38 -0500 Subject: [PATCH] jshint --- js/id/actions/join.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/actions/join.js b/js/id/actions/join.js index 267b6c75a..feccfebaf 100644 --- a/js/id/actions/join.js +++ b/js/id/actions/join.js @@ -51,7 +51,7 @@ iD.actions.Join = function(ids) { graph = graph.replace(parent.replaceMember(b, a)); }); - graph = graph.replace(a.mergeTags(b.tags).update({nodes: nodes})); + graph = graph.replace(a.mergeTags(b.tags).update({ nodes: nodes })); graph = iD.actions.DeleteWay(idB)(graph); return graph; @@ -60,7 +60,7 @@ iD.actions.Join = function(ids) { action.enabled = function(graph) { var geometries = groupEntitiesByGeometry(graph); - if (ids.length !== 2 || ids.length !== geometries['line'].length) + if (ids.length !== 2 || ids.length !== geometries.line.length) return false; var a = graph.entity(idA),