aboutsummaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-28 17:18:40 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-28 17:18:40 +0200
commitd173ad16c509c4d5357c5e106e8ab332cd281b3a (patch)
tree6e4f21970533458a4ec5bfa79dbcd14da9380a3e /src/transform.js
parent4436ca0784a0422facfc0fdfae0febe74d1c1247 (diff)
downloadsvg.js-d173ad16c509c4d5357c5e106e8ab332cd281b3a.tar.gz
svg.js-d173ad16c509c4d5357c5e106e8ab332cd281b3a.zip
revert multiple breaking changes introduced by the last commits
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