Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(breadcrumbs): clean up imports of observable creation methods #1209

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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