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

Commit

Permalink
fix(base): Fix compiler warnings (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
nckh authored and lynnmercier committed Jun 26, 2017
1 parent 82cd7b6 commit 56d8fff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-base/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class MDCComponent {

/**
* @param {!Element} root
* @param {!F} foundation
* @param {F=} foundation
* @param {...?} args
*/
constructor(root, foundation = undefined, ...args) {
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions packages/mdc-base/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ export default class MDCFoundation {
}

/**
* @param {!A} adapter
* @param {A=} adapter
*/
constructor(adapter = {}) {
/** @private {!A} */
/** @protected {!A} */
this.adapter_ = adapter;
}

Expand Down

0 comments on commit 56d8fff

Please sign in to comment.