MCPcopy Create free account
hub / github.com/angular-ui/ui-router / computeCachedCssStyles

Function computeCachedCssStyles

test/angular/1.6/angular-animate.js:880–894  ·  view source on GitHub ↗
(node, className, cacheKey, properties)

Source from the content-addressed store, hash-verified

878 }
879
880 function computeCachedCssStyles(node, className, cacheKey, properties) {
881 var timings = gcsLookup.get(cacheKey);
882
883 if (!timings) {
884 timings = computeCssStyles($window, node, properties);
885 if (timings.animationIterationCount === 'infinite') {
886 timings.animationIterationCount = 1;
887 }
888 }
889
890 // we keep putting this in multiple times even though the value and the cacheKey are the same
891 // because we're keeping an internal tally of how many duplicate animations are detected.
892 gcsLookup.put(cacheKey, timings);
893 return timings;
894 }
895
896 function computeCachedCssStaggerStyles(node, className, cacheKey, properties) {
897 var stagger;

Callers 1

computeTimingsFunction · 0.70

Calls 1

computeCssStylesFunction · 0.70

Tested by

no test coverage detected