From 661af8c44c9b8952c92e229b3f8ea2c323a16214 Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Tue, 18 Aug 2009 13:24:11 +1000 Subject: [PATCH] Fixed rotation bug --- raphael.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/raphael.js b/raphael.js index 5bd0c35..8f33f82 100644 --- a/raphael.js +++ b/raphael.js @@ -873,7 +873,7 @@ window.Raphael = (function () { }, node = o.node, attrs = o.attrs, - rot = attrs.rotation, + rot = o.attr("rotation"), addDashes = function (o, value) { value = dasharray[(value + "").toLowerCase()]; if (value) { @@ -971,6 +971,7 @@ window.Raphael = (function () { addDashes(o, value); break; case "rotation": + rot = value; o.rotate(value, true); break; case "translation": @@ -1058,7 +1059,7 @@ window.Raphael = (function () { } tuneText(o, params); - o.rotate(attrs.rotation, true); + o.rotate(rot, true); }; var leading = 1.2; var tuneText = function (el, params) { -- 2.39.2