From 38b327fefeb436ad06444c42abe3620c2f391a44 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Mon, 11 Feb 2013 10:42:49 -0500 Subject: [PATCH] jshint fixes, fix global leak --- js/id/behavior/add_way.js | 2 +- js/id/core/history.js | 2 +- js/id/svg.js | 2 +- js/id/ui/source_switch.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/id/behavior/add_way.js b/js/id/behavior/add_way.js index 782d7f183..19f9437cd 100644 --- a/js/id/behavior/add_way.js +++ b/js/id/behavior/add_way.js @@ -1,5 +1,5 @@ iD.behavior.AddWay = function(context) { - var event = d3.dispatch('start', 'startFromWay', 'startFromNode') + var event = d3.dispatch('start', 'startFromWay', 'startFromNode'), draw = iD.behavior.Draw(context); var addWay = function(surface) { diff --git a/js/id/core/history.js b/js/id/core/history.js index caefc45d2..1bedaeb60 100644 --- a/js/id/core/history.js +++ b/js/id/core/history.js @@ -187,7 +187,7 @@ iD.History = function(context) { annotation: i.annotation, imagery_used: i.imagery_used, entities: i.graph.entities - } + }; })); context.storage(getKey('history'), json); diff --git a/js/id/svg.js b/js/id/svg.js index bbd22fb78..dda91ec99 100644 --- a/js/id/svg.js +++ b/js/id/svg.js @@ -41,6 +41,6 @@ iD.svg = { } }); return tags; - } + }; } }; diff --git a/js/id/ui/source_switch.js b/js/id/ui/source_switch.js index 1b1bb9530..624e26af4 100644 --- a/js/id/ui/source_switch.js +++ b/js/id/ui/source_switch.js @@ -21,5 +21,5 @@ iD.ui.SourceSwitch = function(context) { .text(t('source_switch.live')) .classed('live', true) .on('click', click); - } + }; };