MCPcopy
hub / github.com/angular-ui/ui-router / runAnimationPostDigest

Function runAnimationPostDigest

test/angular/1.3/angular.js:4597–4610  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

4595 var currentDefer;
4596
4597 function runAnimationPostDigest(fn) {
4598 var cancelFn, defer = $$q.defer();
4599 defer.promise.$$cancelFn = function ngAnimateMaybeCancel() {
4600 cancelFn && cancelFn();
4601 };
4602
4603 $rootScope.$$postDigest(function ngAnimatePostDigest() {
4604 cancelFn = fn(function ngAnimateNotifyComplete() {
4605 defer.resolve();
4606 });
4607 });
4608
4609 return defer.promise;
4610 }
4611
4612 function resolveElementClasses(element, classes) {
4613 var toAdd = [], toRemove = [];

Callers 1

angular.jsFile · 0.70

Calls 2

fnFunction · 0.85
cancelFnFunction · 0.50

Tested by

no test coverage detected