From 92719c1bcee8ddfc7fcfdd895851c9edfeaf5c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Wed, 4 Jan 2017 12:28:09 +0100 Subject: [PATCH] Improved transform list detection. --- editor/browser.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/editor/browser.js b/editor/browser.js index 4a70f424..dc2cafc4 100644 --- a/editor/browser.js +++ b/editor/browser.js @@ -150,7 +150,15 @@ var supportsNativeSVGTransformLists_ = (function() { var rxform = rect.transform.baseVal; var t1 = svg.createSVGTransform(); rxform.appendItem(t1); - return rxform.getItem(0) == t1; + var r1 = rxform.getItem(0); + return r1 instanceof SVGTransform && t1 instanceof SVGTransform && + r1.type == t1.type && r1.angle == t1.angle && + r1.matrix.a == t1.matrix.a && + r1.matrix.b == t1.matrix.b && + r1.matrix.c == t1.matrix.c && + r1.matrix.d == t1.matrix.d && + r1.matrix.e == t1.matrix.e && + r1.matrix.f == t1.matrix.f; }()); // Public API