From 8212dee9fff48fbba6a48ea9255f62cd56347d16 Mon Sep 17 00:00:00 2001 From: Dotan Simha Date: Mon, 8 Feb 2016 13:55:10 +0200 Subject: [PATCH] Fixed a bug caused by requestAnimationFrame did not run on the correct content --- ionic/util/dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/util/dom.ts b/ionic/util/dom.ts index bbeb4e0e34..ee43239540 100644 --- a/ionic/util/dom.ts +++ b/ionic/util/dom.ts @@ -5,7 +5,7 @@ let docEle: any = doc.documentElement; // requestAnimationFrame is polyfilled for old Android // within the web-animations polyfill -export const raf = win.requestAnimationFrame; +export const raf = win.requestAnimationFrame.bind(win); export function rafFrames(framesToWait, callback) { framesToWait = Math.ceil(framesToWait);