(fn)
| 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 |
no test coverage detected