Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c179f40

Browse files
wilgertcaitp
authored andcommitted
Update animate.js
Check if cache and cache.classes exist. Sometimes cache is undefined and errors are thrown when looped over.
1 parent 2a0254e commit c179f40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngAnimate/animate.js

+1
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ angular.module('ngAnimate', ['ng'])
549549
}
550550

551551
function resolveElementClasses(element, cache, runningAnimations) {
552+
if (!cachce || !cache.classes) return;
552553
runningAnimations = runningAnimations || {};
553554

554555
var lookup = {};

0 commit comments

Comments
 (0)