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

Function registerAnimation

test/angular/1.3/angular-animate.js:691–708  ·  view source on GitHub ↗
(animationFactory, event)

Source from the content-addressed store, hash-verified

689 });
690
691 function registerAnimation(animationFactory, event) {
692 var afterFn = animationFactory[event];
693 var beforeFn = animationFactory['before' + event.charAt(0).toUpperCase() + event.substr(1)];
694 if (afterFn || beforeFn) {
695 if (event == 'leave') {
696 beforeFn = afterFn;
697 //when set as null then animation knows to skip this phase
698 afterFn = null;
699 }
700 after.push({
701 event: event, fn: afterFn
702 });
703 before.push({
704 event: event, fn: beforeFn
705 });
706 return true;
707 }
708 }
709
710 function run(fns, cancellations, allCompleteFn) {
711 var animations = [];

Callers 1

animationRunnerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected