Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
WIP: Make Istanbul happy
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvorak committed Feb 9, 2019
1 parent df96ff8 commit f85caa9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-top-app-bar/fixed/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MDCFixedTopAppBarFoundation extends MDCTopAppBarFoundation {
private wasScrolled_ = false;

/* istanbul ignore next */
constructor(adapter: Partial<MDCTopAppBarAdapter> = {}) {
constructor(adapter?: Partial<MDCTopAppBarAdapter>) {
super(adapter);

this.scrollHandler_ = () => this.fixedScrollHandler_();
Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-top-app-bar/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class MDCTopAppBarBaseFoundation extends MDCFoundation<MDCTopAppBarAdapter> {
private readonly navClickHandler_: EventListener;

/* istanbul ignore next */
constructor(adapter: Partial<MDCTopAppBarAdapter> = {}) {
constructor(adapter?: Partial<MDCTopAppBarAdapter>) {
super({...MDCTopAppBarBaseFoundation.defaultAdapter, ...adapter});

this.navClickHandler_ = () => this.adapter_.notifyNavigationIconClicked();
Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-top-app-bar/short/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MDCShortTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
isCollapsed = false;

/* istanbul ignore next */
constructor(adapter: Partial<MDCTopAppBarAdapter> = {}) {
constructor(adapter?: Partial<MDCTopAppBarAdapter>) {
super(adapter);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-top-app-bar/standard/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MDCTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
private resizeDebounceId_ = INITIAL_VALUE;

/* istanbul ignore next */
constructor(adapter: Partial<MDCTopAppBarAdapter> = {}) {
constructor(adapter?: Partial<MDCTopAppBarAdapter>) {
super(adapter);

this.lastScrollPosition_ = this.adapter_.getViewportScrollY();
Expand Down

0 comments on commit f85caa9

Please sign in to comment.