Skip to content

Commit ed6e91b

Browse files
ryasmimatsko
authored andcommitted
fix($animate): properly handle class resolution when element data is missing
Closes angular#9636
1 parent 7b7b082 commit ed6e91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngAnimate/animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ angular.module('ngAnimate', ['ng'])
564564
});
565565

566566
var toAdd = [], toRemove = [];
567-
forEach(cache.classes, function(status, className) {
567+
forEach((cache && cache.classes) || [], function(status, className) {
568568
var hasClass = hasClasses[className];
569569
var matchingAnimation = lookup[className] || {};
570570

0 commit comments

Comments
 (0)