aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-19 16:45:31 +0100
committerwout <wout@impinc.co.uk>2012-12-19 16:45:31 +0100
commitb398d7bb450098fe5f1ed296e0b1a19876760ce0 (patch)
tree870310ada1345444e83b78d075847df3ffb0e9e8 /src/element.js
parentdfa324f1cb9c562a198ad2f9909bbb8d44807936 (diff)
downloadsvg.js-b398d7bb450098fe5f1ed296e0b1a19876760ce0.tar.gz
svg.js-b398d7bb450098fe5f1ed296e0b1a19876760ce0.zip
Made absolute transformations default
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/element.js b/src/element.js
index 35464ad..87ae198 100644
--- a/src/element.js
+++ b/src/element.js
@@ -53,12 +53,12 @@ SVG.extend(SVG.Element, {
},
// transformations
- transform: function(t, a) {
+ transform: function(t, r) {
var n = [],
s = this.attr('transform') || '',
l = s.match(/([a-z]+\([^\)]+\))/g) || [];
- if (a === true) {
+ if (r !== true) {
var v = t.match(/^([A-Za-z\-]+)/)[1],
r = new RegExp('^' + v);