From ae8136d21daf753a04e363a2490095c7aefb17a7 Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Mon, 16 Jun 2014 16:19:31 +0000 Subject: [PATCH] fix(utils/dom): do not add rAF polyfill to window A pull request (#1430) was merged that added a requestAnimationFrame polyfill to the window on platforms that do not have rAF. This was overlooked. This now has created conflicts with Angular 1.2.17 on Android browsers that do not have requestAnimationFrame. The problem was that a polyfill for requestAnimationFrame was put onto the window for Android <4.3. AngularJS would then check if window.requestAnimationFrame existed. Angular's check passed, and then it would try to use cancelAnimationFrame which was undefined. Now, nothing on the window is changed. --- js/utils/dom.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/utils/dom.js b/js/utils/dom.js index b11df8e88d..63fe9c05ea 100644 --- a/js/utils/dom.js +++ b/js/utils/dom.js @@ -31,9 +31,6 @@ window.mozCancelAnimationFrame || window.webkitCancelRequestAnimationFrame; - window.requestAnimationFrame = window._rAF; - window.cancelAnimationFrame = cancelAnimationFrame; - /** * @ngdoc utility * @name ionic.DomUtil