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)