Skip to content

Commit ae8136d

Browse files
committed
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.
1 parent be351ce commit ae8136d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

js/utils/dom.js

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
window.mozCancelAnimationFrame ||
3232
window.webkitCancelRequestAnimationFrame;
3333

34-
window.requestAnimationFrame = window._rAF;
35-
window.cancelAnimationFrame = cancelAnimationFrame;
36-
3734
/**
3835
* @ngdoc utility
3936
* @name ionic.DomUtil

0 commit comments

Comments
 (0)