aboutsummaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/transform.js')
-rw-r--r--src/transform.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/transform.js b/src/transform.js
index e6ad9ae..d3bc964 100644
--- a/src/transform.js
+++ b/src/transform.js
@@ -161,15 +161,13 @@ SVG.extend(SVG.FX, {
}
if(!matrix) return this
-
+
matrix.relative = relative
-
- var situation = this.situations.length ? this.situations[this.situations.length-1] : this.current
-
- situation.transforms.push(matrix)
+
+ this.last().transforms.push(matrix)
setTimeout(function(){this.start()}.bind(this), 0)
-
+
return this
}
})
@@ -263,7 +261,7 @@ SVG.Transformation = SVG.invent({
return this.inversed ? m.inverse() : m
}
-
+
, undo: function(o){
this._undo = new SVG[capitalize(this.method)](o, true).at(1)
return this