Merge pull request #916 from jryans/raf

Replace mozRequestAnimationFrame with requestAnimationFrame. Fixes #915
This commit is contained in:
YUKI "Piro" Hiroshi 2015-07-24 10:51:06 +09:00
commit 11756e550b

View File

@ -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);
});
}