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

Function $$CoreAnimateQueueProvider

test/angular/1.7/angular.js:5508–5612  ·  view source on GitHub ↗

@this

()

Source from the content-addressed store, hash-verified

5506// this is prefixed with Core since it conflicts with
5507// the animateQueueProvider defined in ngAnimate/animateQueue.js
5508var $$CoreAnimateQueueProvider = /** @this */ function() {
5509 var postDigestQueue = new NgMap();
5510 var postDigestElements = [];
5511
5512 this.$get = ['$$AnimateRunner', '$rootScope',
5513 function($$AnimateRunner, $rootScope) {
5514 return {
5515 enabled: noop,
5516 on: noop,
5517 off: noop,
5518 pin: noop,
5519
5520 push: function(element, event, options, domOperation) {
5521 if (domOperation) {
5522 domOperation();
5523 }
5524
5525 options = options || {};
5526 if (options.from) {
5527 element.css(options.from);
5528 }
5529 if (options.to) {
5530 element.css(options.to);
5531 }
5532
5533 if (options.addClass || options.removeClass) {
5534 addRemoveClassesPostDigest(element, options.addClass, options.removeClass);
5535 }
5536
5537 var runner = new $$AnimateRunner();
5538
5539 // since there are no animations to run the runner needs to be
5540 // notified that the animation call is complete.
5541 runner.complete();
5542 return runner;
5543 }
5544 };
5545
5546
5547 function updateData(data, classes, value) {
5548 var changed = false;
5549 if (classes) {
5550 classes = isString(classes) ? classes.split(' ') :
5551 isArray(classes) ? classes : [];
5552 forEach(classes, function(className) {
5553 if (className) {
5554 changed = true;
5555 data[className] = value;
5556 }
5557 });
5558 }
5559 return changed;
5560 }
5561
5562 function handleCSSClassChanges() {
5563 forEach(postDigestElements, function(element) {
5564 var data = postDigestQueue.get(element);
5565 if (data) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected