diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-11 17:37:06 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-11 17:37:06 +0100 |
commit | bf7703f5915c6154937f3febf812aad6483bff45 (patch) | |
tree | 384be2f9fff05e755669b14f2f8fa0a624dacf45 /src/animation/Animator.js | |
parent | f2513baf3c9262190ee2c92fb98b2dd099bfbab2 (diff) | |
download | svg.js-bf7703f5915c6154937f3febf812aad6483bff45.tar.gz svg.js-bf7703f5915c6154937f3febf812aad6483bff45.zip |
make window and document exchangeable in case they are not globals alreay, make sure that init functions are chaninable
Diffstat (limited to 'src/animation/Animator.js')
-rw-r--r-- | src/animation/Animator.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/animation/Animator.js b/src/animation/Animator.js index fdb2326..4e0b112 100644 --- a/src/animation/Animator.js +++ b/src/animation/Animator.js @@ -1,5 +1,8 @@ +import globals from '../utils/window.js' import Queue from './Queue.js' +const { window } = globals + const Animator = { nextDraw: null, frames: new Queue(), |