Remove global window and navigator usages from the core code.

This commit is contained in:
Yury Delendik 2016-04-06 10:38:48 -05:00
parent 1e3e14e6b2
commit 1e4886a15a
4 changed files with 9 additions and 13 deletions

View file

@ -2002,7 +2002,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
},
_scheduleNext: function InternalRenderTask__scheduleNext() {
if (this.useRequestAnimationFrame) {
if (this.useRequestAnimationFrame && typeof window !== 'undefined') {
window.requestAnimationFrame(this._nextBound);
} else {
Promise.resolve(undefined).then(this._nextBound);