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

Function computeCachedCssStyles

lib/test/angular/1.4.3/angular-animate.js:738–752  ·  view source on GitHub ↗
(node, className, cacheKey, properties)

Source from the content-addressed store, hash-verified

736 }
737
738 function computeCachedCssStyles(node, className, cacheKey, properties) {
739 var timings = gcsLookup.get(cacheKey);
740
741 if (!timings) {
742 timings = computeCssStyles($window, node, properties);
743 if (timings.animationIterationCount === 'infinite') {
744 timings.animationIterationCount = 1;
745 }
746 }
747
748 // we keep putting this in multiple times even though the value and the cacheKey are the same
749 // because we're keeping an interal tally of how many duplicate animations are detected.
750 gcsLookup.put(cacheKey, timings);
751 return timings;
752 }
753
754 function computeCachedCssStaggerStyles(node, className, cacheKey, properties) {
755 var stagger;

Callers 1

computeTimingsFunction · 0.70

Calls 1

computeCssStylesFunction · 0.70

Tested by

no test coverage detected