[Pkg-javascript-commits] [pdf.js] 207/210: Reverts mozRequestAnimationFrame to compatibility.js

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit 34089212e0772df5cc668d1210062600cbdc379b
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Thu May 29 16:23:13 2014 -0500

    Reverts mozRequestAnimationFrame to compatibility.js
---
 web/compatibility.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/compatibility.js b/web/compatibility.js
index fd9f215..07d26d3 100644
--- a/web/compatibility.js
+++ b/web/compatibility.js
@@ -496,7 +496,9 @@ if (typeof PDFJS === 'undefined') {
   if ('requestAnimationFrame' in window) {
     return;
   }
-  window.requestAnimationFrame = window.webkitRequestAnimationFrame ||
+  window.requestAnimationFrame =
+    window.mozRequestAnimationFrame ||
+    window.webkitRequestAnimationFrame ||
     (function fakeRequestAnimationFrame(callback) {
       window.setTimeout(callback, 20);
     });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list