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

Commit

Permalink
WIP: Make foundation constructor arg a `Partial<MDCFloatingLabelAdapt…
Browse files Browse the repository at this point in the history
…er>`
  • Loading branch information
acdvorak committed Feb 8, 2019
1 parent 6ffed95 commit 839c5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-floating-label/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class MDCFloatingLabelFoundation extends MDCFoundation<MDCFloatingLabelAdapter>

private readonly shakeAnimationEndHandler_: SpecificEventListener<'animationend'>;

constructor(adapter: MDCFloatingLabelAdapter) {
super(Object.assign(MDCFloatingLabelFoundation.defaultAdapter, adapter));
constructor(adapter: Partial<MDCFloatingLabelAdapter> = {}) {
super({...MDCFloatingLabelFoundation.defaultAdapter, ...adapter});

this.shakeAnimationEndHandler_ = () => this.handleShakeAnimationEnd_();
}
Expand Down

0 comments on commit 839c5b1

Please sign in to comment.