MCPcopy Index your code
hub / github.com/angular-ui/ui-router / getCacheKey

Function getCacheKey

test/angular/1.2/angular-animate.js:1298–1306  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

1296 }
1297
1298 function getCacheKey(element) {
1299 var parentElement = element.parent();
1300 var parentID = parentElement.data(NG_ANIMATE_PARENT_KEY);
1301 if(!parentID) {
1302 parentElement.data(NG_ANIMATE_PARENT_KEY, ++parentCounter);
1303 parentID = parentCounter;
1304 }
1305 return parentID + '-' + extractElementNode(element).getAttribute('class');
1306 }
1307
1308 function animateSetup(animationEvent, element, className, calculationDecorator) {
1309 var cacheKey = getCacheKey(element);

Callers 1

animateSetupFunction · 0.70

Calls 1

extractElementNodeFunction · 0.70

Tested by

no test coverage detected