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

Function runAnimationPostDigest

test/angular/1.3/angular-animate.js:535–546  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

533 }
534
535 function runAnimationPostDigest(fn) {
536 var cancelFn, defer = $$q.defer();
537 defer.promise.$$cancelFn = function() {
538 cancelFn && cancelFn();
539 };
540 $rootScope.$$postDigest(function() {
541 cancelFn = fn(function() {
542 defer.resolve();
543 });
544 });
545 return defer.promise;
546 }
547
548 function parseAnimateOptions(options) {
549 // some plugin code may still be passing in the callback

Callers 1

angular-animate.jsFile · 0.70

Calls 2

fnFunction · 0.85
cancelFnFunction · 0.50

Tested by

no test coverage detected