summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js28
1 files changed, 18 insertions, 10 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 492047d..218c20f 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Wed Mar 08 2017 19:40:52 GMT+0100 (Mitteleuropäische Zeit)
+* BUILT: Thu Mar 09 2017 09:45:46 GMT+0100 (Mitteleuropäische Zeit)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -1700,7 +1700,8 @@ SVG.FX = SVG.invent({
}
this.target().on('finished.fx', wrapper)
- return this
+
+ return this._callStart()
}
// adds a callback which is called whenever one animation step is performed
@@ -1715,9 +1716,11 @@ SVG.FX = SVG.invent({
// see above
this.target().off('during.fx', wrapper).on('during.fx', wrapper)
- return this.after(function(){
+ this.after(function(){
this.off('during.fx', wrapper)
})
+
+ return this._callStart()
}
// calls after ALL animations in the queue are finished
@@ -1729,7 +1732,8 @@ SVG.FX = SVG.invent({
// see above
this.target().off('allfinished.fx', wrapper).on('allfinished.fx', wrapper)
- return this
+
+ return this._callStart()
}
// calls on every animation step for all animations
@@ -1740,9 +1744,11 @@ SVG.FX = SVG.invent({
this.target().off('during.fx', wrapper).on('during.fx', wrapper)
- return this.afterAll(function(){
+ this.afterAll(function(){
this.off('during.fx', wrapper)
})
+
+ return this._callStart()
}
, last: function(){
@@ -1752,8 +1758,7 @@ SVG.FX = SVG.invent({
// adds one property to the animations
, add: function(method, args, type){
this.last()[type || 'animations'][method] = args
- setTimeout(function(){this.start()}.bind(this), 0)
- return this
+ return this._callStart()
}
/** perform one step of the animation
@@ -1941,6 +1946,11 @@ SVG.FX = SVG.invent({
return this
}
+ , _callStart: function() {
+ setTimeout(function(){this.start()}.bind(this), 0)
+ return this
+ }
+
}
, parent: SVG.Element
@@ -2841,9 +2851,7 @@ SVG.extend(SVG.FX, {
this.last().transforms.push(matrix)
- setTimeout(function(){this.start()}.bind(this), 0)
-
- return this
+ return this._callStart()
}
})