Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit a62dd19

Browse files
committed
fix($$RAFProvider): check for webkitCancelRequestAnimationFrame.
Android 4.3 only supports webkitCancelRequestAnimationFrame. Closes angular#6526
1 parent d07101d commit a62dd19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/raf.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ function $$RAFProvider(){ //rAF
66
$window.webkitRequestAnimationFrame;
77

88
var cancelAnimationFrame = $window.cancelAnimationFrame ||
9-
$window.webkitCancelAnimationFrame;
9+
$window.webkitCancelAnimationFrame ||
10+
$window.webkitCancelRequestAnimationFrame;
1011

1112
var raf = function(fn) {
1213
var id = requestAnimationFrame(fn);

0 commit comments

Comments
 (0)