chore($animate): remove Moz statements from requestAnimationFrame

This commit is contained in:
Matias Niemelä 2014-01-15 03:29:20 -05:00
parent dde1b29497
commit 7d09bd30f9

View file

@ -250,14 +250,12 @@ angular.module('ngAnimate', ['ng'])
*/
.factory('$$animateReflow', ['$window', '$timeout', function($window, $timeout) {
var requestAnimationFrame = $window.requestAnimationFrame ||
$window.mozRequestAnimationFrame ||
$window.webkitRequestAnimationFrame ||
function(fn) {
return $timeout(fn, 10, false);
};
var cancelAnimationFrame = $window.cancelAnimationFrame ||
$window.mozCancelAnimationFrame ||
$window.webkitCancelAnimationFrame ||
function(timer) {
return $timeout.cancel(timer);