diff --git a/packages/mdc-drawer/dismissible/foundation.ts b/packages/mdc-drawer/dismissible/foundation.ts index fd679351a26..c4a785eff4f 100644 --- a/packages/mdc-drawer/dismissible/foundation.ts +++ b/packages/mdc-drawer/dismissible/foundation.ts @@ -55,7 +55,7 @@ class MDCDismissibleDrawerFoundation extends MDCFoundation { private animationFrame_ = 0; private animationTimer_ = 0; - constructor(adapter: Partial = {}) { + constructor(adapter?: Partial) { super({...MDCDismissibleDrawerFoundation.defaultAdapter, ...adapter}); } @@ -68,9 +68,6 @@ class MDCDismissibleDrawerFoundation extends MDCFoundation { } } - /** - * Function to open the drawer. - */ open() { if (this.isOpen() || this.isOpening() || this.isClosing()) { return; @@ -87,9 +84,6 @@ class MDCDismissibleDrawerFoundation extends MDCFoundation { this.adapter_.saveFocus(); } - /** - * Function to close the drawer. - */ close() { if (!this.isOpen() || this.isOpening() || this.isClosing()) { return;