From 542c41aaa2664143c70988ac7363f93fbfbd5ea3 Mon Sep 17 00:00:00 2001 From: Carles Codony Date: Sat, 31 May 2014 13:35:25 +0200 Subject: [PATCH] Element.transform().toString() fix attempt Sometimes calling .transform().toString() returns an object, instead of a string. elproto._.transform gets assigned to the toString() property of the transform() return value, but this value is an object. Sample case: http://jsfiddle.net/bitblitter/hUWT7/3/ --- src/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg.js b/src/svg.js index b3757d0..861460e 100644 --- a/src/svg.js +++ b/src/svg.js @@ -1359,7 +1359,7 @@ function Element(el) { i, localString = local.toTransformString(), string = Str(local) == Str(this.matrix) ? - _.transform : localString; + Str(_.transform) : localString; while (papa.type != "svg" && (papa = papa.parent())) { ms.push(extractTransform(papa)); }