From 008a520efdcbdc7653b29feb4f76cd30759814e5 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 22 Jul 2015 10:43:24 -0500 Subject: [PATCH] Replace mozRequestAnimationFrame with requestAnimationFrame. Fixes #915 --- modules/lib/animationManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lib/animationManager.js b/modules/lib/animationManager.js index c8572cb4..9d147fdf 100644 --- a/modules/lib/animationManager.js +++ b/modules/lib/animationManager.js @@ -120,7 +120,7 @@ if (typeof window == 'undefined' || return; this._animatingWindows.push(aWindow); let self = this; - aWindow.mozRequestAnimationFrame(function() { + aWindow.requestAnimationFrame(function() { self.processAnimationFrame(aWindow); }); }, this); @@ -168,7 +168,7 @@ if (typeof window == 'undefined' || this._cleanUpWindows(); if (this._animatingWindows.indexOf(aWindow) > -1) { let self = this; - aWindow.mozRequestAnimationFrame(function() { + aWindow.requestAnimationFrame(function() { self.processAnimationFrame(aWindow); }); }