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/
master
Carles Codony 2014-05-31 13:35:25 +02:00
parent 25fdc9f477
commit 542c41aaa2
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}