@angular/animations 5.2.7 → 5.2.11

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 v5.2.7
2
+ * @license Angular v5.2.11
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v5.2.7
2
+ * @license Angular v5.2.11
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/esm5/browser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v5.2.7
2
+ * @license Angular v5.2.11
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4145,7 +4145,16 @@ var TransitionAnimationEngine = /** @class */ (function () {
4145
4145
  // code does not contain any animation code in it, but it is
4146
4146
  // just being called so that the node is marked as being inserted
4147
4147
  if (namespaceId) {
4148
- this._fetchNamespace(namespaceId).insertNode(element, parent);
4148
+ var /** @type {?} */ ns = this._fetchNamespace(namespaceId);
4149
+ // This if-statement is a workaround for router issue #21947.
4150
+ // The router sometimes hits a race condition where while a route
4151
+ // is being instantiated a new navigation arrives, triggering leave
4152
+ // animation of DOM that has not been fully initialized, until this
4153
+ // is resolved, we need to handle the scenario when DOM is not in a
4154
+ // consistent state during the animation.
4155
+ if (ns) {
4156
+ ns.insertNode(element, parent);
4157
+ }
4149
4158
  }
4150
4159
  // only *directives and host elements are inserted before
4151
4160
  if (insertBefore) {