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

Function cleanup

test/angular/1.3/angular-animate.js:1522–1542  ·  view source on GitHub ↗
(element, className)

Source from the content-addressed store, hash-verified

1520 }
1521
1522 function cleanup(element, className) {
1523 if (isMatchingElement(element, $rootElement)) {
1524 if (!rootAnimateState.disabled) {
1525 rootAnimateState.running = false;
1526 rootAnimateState.structural = false;
1527 }
1528 } else if (className) {
1529 var data = element.data(NG_ANIMATE_STATE) || {};
1530
1531 var removeAnimations = className === true;
1532 if (!removeAnimations && data.active && data.active[className]) {
1533 data.totalActive--;
1534 delete data.active[className];
1535 }
1536
1537 if (removeAnimations || !data.totalActive) {
1538 $$jqLite.removeClass(element, NG_ANIMATE_CLASS_NAME);
1539 element.removeData(NG_ANIMATE_STATE);
1540 }
1541 }
1542 }
1543
1544 function animationsDisabled(element, parentElement) {
1545 if (rootAnimateState.disabled) {

Callers 3

angular-animate.jsFile · 0.70
performAnimationFunction · 0.70
closeAnimationFunction · 0.70

Calls 1

isMatchingElementFunction · 0.70

Tested by

no test coverage detected