From f6d04ce529622b77d2ff1a0def9e7c29c818bbf6 Mon Sep 17 00:00:00 2001 From: Ryan Smith <0ryansmith1994@gmail.com> Date: Fri, 31 Oct 2014 12:22:29 +0000 Subject: [PATCH] Closes #9636 No reason not to have this check. --- src/ngAnimate/animate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index 1492576ede01..4609b560ec21 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -564,7 +564,7 @@ angular.module('ngAnimate', ['ng']) }); var toAdd = [], toRemove = []; - forEach(cache.classes, function(status, className) { + forEach((cache && cache.classes) || [], function(status, className) { var hasClass = hasClasses[className]; var matchingAnimation = lookup[className] || {};