From a35613607bc3c414cd990085131fdb1d4457ed81 Mon Sep 17 00:00:00 2001 From: Manuel Stofer Date: Tue, 15 Dec 2015 17:32:05 +0100 Subject: [PATCH] IE11 does not like it when requestAnimationFrame is called without window context --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4c72fe2..42ce0da 100644 --- a/index.js +++ b/index.js @@ -2,10 +2,10 @@ * Expose `requestAnimationFrame()`. */ -exports = module.exports = window.requestAnimationFrame +exports = module.exports = (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame - || fallback; + || fallback).bind(window); /** * Fallback implementation.