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

Function computeCachedCssStyles

lib/test/angular/1.5.0/angular-animate.js:899–913  ·  view source on GitHub ↗
(node, className, cacheKey, properties)

Source from the content-addressed store, hash-verified

897 }
898
899 function computeCachedCssStyles(node, className, cacheKey, properties) {
900 var timings = gcsLookup.get(cacheKey);
901
902 if (!timings) {
903 timings = computeCssStyles($window, node, properties);
904 if (timings.animationIterationCount === 'infinite') {
905 timings.animationIterationCount = 1;
906 }
907 }
908
909 // we keep putting this in multiple times even though the value and the cacheKey are the same
910 // because we're keeping an internal tally of how many duplicate animations are detected.
911 gcsLookup.put(cacheKey, timings);
912 return timings;
913 }
914
915 function computeCachedCssStaggerStyles(node, className, cacheKey, properties) {
916 var stagger;

Callers 1

computeTimingsFunction · 0.70

Calls 1

computeCssStylesFunction · 0.70

Tested by

no test coverage detected