ClientRect is in fact not cloneable, breaks under lodash 3.x

This commit is contained in:
Bryan Housel
2015-06-09 21:21:16 -04:00
parent 76089be464
commit f5b6433a2f

View File

@@ -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,