summaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-21 18:16:13 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-21 18:16:13 +0100
commit459a56e40e5f6d3ce08d3783c1d75be1963475e1 (patch)
tree208ca9b5a3af5898749bbfcc67f97edc8433b693 /src/fx.js
parentc2ff36620be14e4782d2bdf6154d44ad388fcffc (diff)
downloadsvg.js-459a56e40e5f6d3ce08d3783c1d75be1963475e1.tar.gz
svg.js-459a56e40e5f6d3ce08d3783c1d75be1963475e1.zip
onclick events are now bound with SVG.on, prefixed globals, relax tests to work with svgdom, image loading uses eveents now, can now run jasmine tessts with svgdom when jasmine globally available
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fx.js b/src/fx.js
index 98ded65..922abc9 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -148,12 +148,12 @@ SVG.FX = SVG.invent({
// starts the animationloop
, startAnimFrame: function(){
this.stopAnimFrame()
- this.animationFrame = requestAnimationFrame(function(){ this.step() }.bind(this))
+ this.animationFrame = window.requestAnimationFrame(function(){ this.step() }.bind(this))
}
// cancels the animationframe
, stopAnimFrame: function(){
- cancelAnimationFrame(this.animationFrame)
+ window.cancelAnimationFrame(this.animationFrame)
}
// kicks off the animation - only does something when the queue is currently not active and at least one situation is set