From 56d8fffb473c4931cd33df6b0a2454d32c6b12e5 Mon Sep 17 00:00:00 2001 From: Greg de J Date: Tue, 27 Jun 2017 01:10:18 +0900 Subject: [PATCH] fix(base): Fix compiler warnings (#788) --- packages/mdc-base/component.js | 4 ++-- packages/mdc-base/foundation.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mdc-base/component.js b/packages/mdc-base/component.js index 1c99603eaee..6ff445cd36a 100644 --- a/packages/mdc-base/component.js +++ b/packages/mdc-base/component.js @@ -35,7 +35,7 @@ export default class MDCComponent { /** * @param {!Element} root - * @param {!F} foundation + * @param {F=} foundation * @param {...?} args */ constructor(root, foundation = undefined, ...args) { @@ -44,7 +44,7 @@ export default class MDCComponent { this.initialize(...args); // Note that we initialize foundation here and not within the constructor's default param so that // this.root_ is defined and can be used within the foundation class. - /** @private {!F} */ + /** @protected {!F} */ this.foundation_ = foundation === undefined ? this.getDefaultFoundation() : foundation; this.foundation_.init(); this.initialSyncWithDOM(); diff --git a/packages/mdc-base/foundation.js b/packages/mdc-base/foundation.js index eb78a1f2d75..303821ca0b8 100644 --- a/packages/mdc-base/foundation.js +++ b/packages/mdc-base/foundation.js @@ -49,10 +49,10 @@ export default class MDCFoundation { } /** - * @param {!A} adapter + * @param {A=} adapter */ constructor(adapter = {}) { - /** @private {!A} */ + /** @protected {!A} */ this.adapter_ = adapter; }