@angular/animations 9.0.0-rc.9 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v9.0.0-rc.9
2
+ * @license Angular v9.0.0
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v9.0.0-rc.9
2
+ * @license Angular v9.0.0
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/fesm5/browser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v9.0.0-rc.9
2
+ * @license Angular v9.0.0
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2665,11 +2665,14 @@ var AnimationTransitionNamespace = /** @class */ (function () {
2665
2665
  engine.markElementAsRemoved(this.id, element, false, context);
2666
2666
  }
2667
2667
  else {
2668
- // we do this after the flush has occurred such
2669
- // that the callbacks can be fired
2670
- engine.afterFlush(function () { return _this.clearElementCache(element); });
2671
- engine.destroyInnerAnimations(element);
2672
- engine._onRemovalComplete(element, context);
2668
+ var removalFlag = element[REMOVAL_FLAG];
2669
+ if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {
2670
+ // we do this after the flush has occurred such
2671
+ // that the callbacks can be fired
2672
+ engine.afterFlush(function () { return _this.clearElementCache(element); });
2673
+ engine.destroyInnerAnimations(element);
2674
+ engine._onRemovalComplete(element, context);
2675
+ }
2673
2676
  }
2674
2677
  };
2675
2678
  AnimationTransitionNamespace.prototype.insertNode = function (element, parent) { addClass(element, this._hostClassName); };