From f5b6433a2f72d7cb50a4518cfbda78c9ed43ccdf Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 9 Jun 2015 21:21:16 -0400 Subject: [PATCH] ClientRect is in fact not cloneable, breaks under lodash 3.x --- js/id/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/util.js b/js/id/util.js index 273d40338..6ed3d388f 100644 --- a/js/id/util.js +++ b/js/id/util.js @@ -139,7 +139,7 @@ iD.util.editDistance = function(a, b) { // 1. Only works on HTML elements, not SVG // 2. Does not cause style recalculation iD.util.fastMouse = function(container) { - var rect = _.clone(container.getBoundingClientRect()), + var rect = container.getBoundingClientRect(), rectLeft = rect.left, rectTop = rect.top, clientLeft = +container.clientLeft,