Skip to content

Commit

Permalink
fix(breadcrumbs): clean up imports of observable creation methods (Te…
Browse files Browse the repository at this point in the history
…radata#1209)

* Change to import creation methods from rxjs. Without this change, consumers
of covalent are obligated to install rxjs-compat.

Closes Teradata#1208
  • Loading branch information
jotatoledo authored and emoralesb05 committed Aug 13, 2018
1 parent 9616d0d commit bb24909
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -89,7 +89,7 @@ export class TdBreadcrumbsComponent implements OnInit, DoCheck, AfterContentInit
*/
get nativeElementWidth(): number {
return (<HTMLElement>this._elementRef.nativeElement).getBoundingClientRect().width;
}
}

/**
* The total count of individual breadcrumbs
Expand Down Expand Up @@ -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--) {
Expand Down

0 comments on commit bb24909

Please sign in to comment.