diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-21 18:16:13 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-21 18:16:13 +0100 |
commit | 459a56e40e5f6d3ce08d3783c1d75be1963475e1 (patch) | |
tree | 208ca9b5a3af5898749bbfcc67f97edc8433b693 /src/fx.js | |
parent | c2ff36620be14e4782d2bdf6154d44ad388fcffc (diff) | |
download | svg.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.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |