From 3197c50f19657439c705242cb6414160ca176c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Toledo=20Navarro?= Date: Mon, 13 Aug 2018 23:13:19 +0200 Subject: [PATCH] fix(breadcrumbs): clean up imports of observable creation methods (#1209) * Change to import creation methods from rxjs. Without this change, consumers of covalent are obligated to install rxjs-compat. Closes #1208 --- .../experimental/breadcrumbs/breadcrumbs.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/experimental/breadcrumbs/breadcrumbs.component.ts b/src/platform/experimental/breadcrumbs/breadcrumbs.component.ts index 123a58a040..1a903f5b7c 100644 --- a/src/platform/experimental/breadcrumbs/breadcrumbs.component.ts +++ b/src/platform/experimental/breadcrumbs/breadcrumbs.component.ts @@ -15,13 +15,13 @@ import { import { Subscription, Subject, + fromEvent, + merge, } from 'rxjs'; import { debounceTime, distinctUntilChanged, } from 'rxjs/operators'; -import { fromEvent } from 'rxjs/observable/fromEvent'; -import { merge } from 'rxjs/observable/merge'; import { TdBreadcrumbComponent } from './breadcrumb/breadcrumb.component'; @@ -89,7 +89,7 @@ export class TdBreadcrumbsComponent implements OnInit, DoCheck, AfterContentInit */ get nativeElementWidth(): number { return (this._elementRef.nativeElement).getBoundingClientRect().width; - } + } /** * The total count of individual breadcrumbs @@ -125,7 +125,7 @@ export class TdBreadcrumbsComponent implements OnInit, DoCheck, AfterContentInit this.hiddenBreadcrumbs.push(crumbsArray[this.hiddenBreadcrumbs.length]); this.displayWidthAvailableCrumbs(); } else { - // loop over all the hidden crumbs and see if adding them back in will + // loop over all the hidden crumbs and see if adding them back in will // fit in the current window size let totalHidden: number = this.hiddenBreadcrumbs.length - 1; for (let i: number = totalHidden; i >= 0; i--) {