@angular/router 4.4.3 → 4.4.7

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 v4.4.3
2
+ * @license Angular v4.4.7
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -5051,19 +5051,20 @@ class RouterLinkActive {
5051
5051
  update() {
5052
5052
  if (!this.links || !this.linksWithHrefs || !this.router.navigated)
5053
5053
  return;
5054
- const /** @type {?} */ hasActiveLinks = this.hasActiveLinks();
5055
- // react only when status has changed to prevent unnecessary dom updates
5056
- if (this.active !== hasActiveLinks) {
5057
- this.classes.forEach((c) => {
5058
- if (hasActiveLinks) {
5059
- this.renderer.addClass(this.element.nativeElement, c);
5060
- }
5061
- else {
5062
- this.renderer.removeClass(this.element.nativeElement, c);
5063
- }
5064
- });
5065
- Promise.resolve(hasActiveLinks).then(active => this.active = active);
5066
- }
5054
+ Promise.resolve().then(() => {
5055
+ const /** @type {?} */ hasActiveLinks = this.hasActiveLinks();
5056
+ if (this.active !== hasActiveLinks) {
5057
+ this.active = hasActiveLinks;
5058
+ this.classes.forEach((c) => {
5059
+ if (hasActiveLinks) {
5060
+ this.renderer.addClass(this.element.nativeElement, c);
5061
+ }
5062
+ else {
5063
+ this.renderer.removeClass(this.element.nativeElement, c);
5064
+ }
5065
+ });
5066
+ }
5067
+ });
5067
5068
  }
5068
5069
  /**
5069
5070
  * @param {?} router
@@ -5495,7 +5496,6 @@ class RouterPreloader {
5495
5496
  const onEndLoad = (r) => router.triggerEvent(new RouteConfigLoadEnd(r));
5496
5497
  this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);
5497
5498
  }
5498
- ;
5499
5499
  /**
5500
5500
  * @return {?}
5501
5501
  */
@@ -5977,7 +5977,7 @@ function provideRouterInitializer() {
5977
5977
  /**
5978
5978
  * \@stable
5979
5979
  */
5980
- const VERSION = new Version('4.4.3');
5980
+ const VERSION = new Version('4.4.7');
5981
5981
 
5982
5982
  /**
5983
5983
  * @license