From 7c7f64f41a21d781f9cd01dec655ddc124d6445a Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Mon, 3 Dec 2012 09:44:14 -0500 Subject: [PATCH] d3 style and extra semicolon --- js/id/renderer/map.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index cf64edaa6..8ac6e494d 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -81,7 +81,7 @@ iD.Map = function() { map.size(this.size()); hideInspector(); - }; + } map.history = iD.History(); @@ -257,8 +257,9 @@ iD.Map = function() { .classed('active', classActive); } - map.size = function(size) { - dimensions = size; + map.size = function(_) { + if (!arguments.length) return dimensions; + dimensions = _; surface .size(dimensions)