mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-21 05:04:31 +00:00
ClientRect is in fact not cloneable, breaks under lodash 3.x
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user