@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
  */
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -1,6 +1,6 @@
1
1
  import * as tslib_1 from "tslib";
2
2
  /**
3
- * @license Angular v4.4.3
3
+ * @license Angular v4.4.7
4
4
  * (c) 2010-2017 Google, Inc. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -5283,19 +5283,20 @@ var RouterLinkActive = (function () {
5283
5283
  var _this = this;
5284
5284
  if (!this.links || !this.linksWithHrefs || !this.router.navigated)
5285
5285
  return;
5286
- var /** @type {?} */ hasActiveLinks = this.hasActiveLinks();
5287
- // react only when status has changed to prevent unnecessary dom updates
5288
- if (this.active !== hasActiveLinks) {
5289
- this.classes.forEach(function (c) {
5290
- if (hasActiveLinks) {
5291
- _this.renderer.addClass(_this.element.nativeElement, c);
5292
- }
5293
- else {
5294
- _this.renderer.removeClass(_this.element.nativeElement, c);
5295
- }
5296
- });
5297
- Promise.resolve(hasActiveLinks).then(function (active) { return _this.active = active; });
5298
- }
5286
+ Promise.resolve().then(function () {
5287
+ var /** @type {?} */ hasActiveLinks = _this.hasActiveLinks();
5288
+ if (_this.active !== hasActiveLinks) {
5289
+ _this.active = hasActiveLinks;
5290
+ _this.classes.forEach(function (c) {
5291
+ if (hasActiveLinks) {
5292
+ _this.renderer.addClass(_this.element.nativeElement, c);
5293
+ }
5294
+ else {
5295
+ _this.renderer.removeClass(_this.element.nativeElement, c);
5296
+ }
5297
+ });
5298
+ }
5299
+ });
5299
5300
  };
5300
5301
  /**
5301
5302
  * @param {?} router
@@ -5763,7 +5764,6 @@ var RouterPreloader = (function () {
5763
5764
  var onEndLoad = function (r) { return router.triggerEvent(new RouteConfigLoadEnd(r)); };
5764
5765
  this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);
5765
5766
  }
5766
- ;
5767
5767
  /**
5768
5768
  * @return {?}
5769
5769
  */
@@ -6253,7 +6253,7 @@ function provideRouterInitializer() {
6253
6253
  /**
6254
6254
  * \@stable
6255
6255
  */
6256
- var VERSION = new Version('4.4.3');
6256
+ var VERSION = new Version('4.4.7');
6257
6257
  /**
6258
6258
  * @license
6259
6259
  * Copyright Google Inc. All Rights Reserved.