@this
()
| 5571 | // this is prefixed with Core since it conflicts with |
| 5572 | // the animateQueueProvider defined in ngAnimate/animateQueue.js |
| 5573 | var $$CoreAnimateQueueProvider = /** @this */ function() { |
| 5574 | var postDigestQueue = new NgMap(); |
| 5575 | var postDigestElements = []; |
| 5576 | |
| 5577 | this.$get = ['$$AnimateRunner', '$rootScope', |
| 5578 | function($$AnimateRunner, $rootScope) { |
| 5579 | return { |
| 5580 | enabled: noop, |
| 5581 | on: noop, |
| 5582 | off: noop, |
| 5583 | pin: noop, |
| 5584 | |
| 5585 | push: function(element, event, options, domOperation) { |
| 5586 | if (domOperation) { |
| 5587 | domOperation(); |
| 5588 | } |
| 5589 | |
| 5590 | options = options || {}; |
| 5591 | if (options.from) { |
| 5592 | element.css(options.from); |
| 5593 | } |
| 5594 | if (options.to) { |
| 5595 | element.css(options.to); |
| 5596 | } |
| 5597 | |
| 5598 | if (options.addClass || options.removeClass) { |
| 5599 | addRemoveClassesPostDigest(element, options.addClass, options.removeClass); |
| 5600 | } |
| 5601 | |
| 5602 | var runner = new $$AnimateRunner(); |
| 5603 | |
| 5604 | // since there are no animations to run the runner needs to be |
| 5605 | // notified that the animation call is complete. |
| 5606 | runner.complete(); |
| 5607 | return runner; |
| 5608 | } |
| 5609 | }; |
| 5610 | |
| 5611 | |
| 5612 | function updateData(data, classes, value) { |
| 5613 | var changed = false; |
| 5614 | if (classes) { |
| 5615 | classes = isString(classes) ? classes.split(' ') : |
| 5616 | isArray(classes) ? classes : []; |
| 5617 | forEach(classes, function(className) { |
| 5618 | if (className) { |
| 5619 | changed = true; |
| 5620 | data[className] = value; |
| 5621 | } |
| 5622 | }); |
| 5623 | } |
| 5624 | return changed; |
| 5625 | } |
| 5626 | |
| 5627 | function handleCSSClassChanges() { |
| 5628 | forEach(postDigestElements, function(element) { |
| 5629 | var data = postDigestQueue.get(element); |
| 5630 | if (data) { |
nothing calls this directly
no test coverage detected