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

Function $$CoreAnimateQueueProvider

lib/test/angular/1.7.0/angular.js:5458–5562  ·  view source on GitHub ↗

@this

()

Source from the content-addressed store, hash-verified

5456// this is prefixed with Core since it conflicts with
5457// the animateQueueProvider defined in ngAnimate/animateQueue.js
5458var $$CoreAnimateQueueProvider = /** @this */ function() {
5459 var postDigestQueue = new NgMap();
5460 var postDigestElements = [];
5461
5462 this.$get = ['$$AnimateRunner', '$rootScope',
5463 function($$AnimateRunner, $rootScope) {
5464 return {
5465 enabled: noop,
5466 on: noop,
5467 off: noop,
5468 pin: noop,
5469
5470 push: function(element, event, options, domOperation) {
5471 if (domOperation) {
5472 domOperation();
5473 }
5474
5475 options = options || {};
5476 if (options.from) {
5477 element.css(options.from);
5478 }
5479 if (options.to) {
5480 element.css(options.to);
5481 }
5482
5483 if (options.addClass || options.removeClass) {
5484 addRemoveClassesPostDigest(element, options.addClass, options.removeClass);
5485 }
5486
5487 var runner = new $$AnimateRunner();
5488
5489 // since there are no animations to run the runner needs to be
5490 // notified that the animation call is complete.
5491 runner.complete();
5492 return runner;
5493 }
5494 };
5495
5496
5497 function updateData(data, classes, value) {
5498 var changed = false;
5499 if (classes) {
5500 classes = isString(classes) ? classes.split(' ') :
5501 isArray(classes) ? classes : [];
5502 forEach(classes, function(className) {
5503 if (className) {
5504 changed = true;
5505 data[className] = value;
5506 }
5507 });
5508 }
5509 return changed;
5510 }
5511
5512 function handleCSSClassChanges() {
5513 forEach(postDigestElements, function(element) {
5514 var data = postDigestQueue.get(element);
5515 if (data) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected