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

Commit

Permalink
fix: hot-patching closure annotations. (#3024)
Browse files Browse the repository at this point in the history
  • Loading branch information
aprigogin authored Jul 3, 2018
1 parent fa2aa20 commit d5b95ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/mdc-checkbox/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class MDCCheckboxFoundation extends MDCFoundation {
() => this.handleChange());
}

/** @override */
init() {
this.currentCheckState_ = this.determineCheckState_(this.getNativeControl_());
this.updateAriaChecked_();
Expand All @@ -88,6 +89,7 @@ class MDCCheckboxFoundation extends MDCFoundation {
this.installPropertyChangeHooks_();
}

/** @override */
destroy() {
this.adapter_.deregisterChangeHandler(this.changeHandler_);
this.uninstallPropertyChangeHooks_();
Expand Down
2 changes: 2 additions & 0 deletions packages/mdc-ripple/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class MDCRippleFoundation extends MDCFoundation {
};
}

/** @override */
init() {
if (!this.isSupported_()) {
return;
Expand All @@ -211,6 +212,7 @@ class MDCRippleFoundation extends MDCFoundation {
});
}

/** @override */
destroy() {
if (!this.isSupported_()) {
return;
Expand Down
6 changes: 5 additions & 1 deletion packages/mdc-ripple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,15 @@ class MDCRipple extends MDCComponent {
this.foundation_.layout();
}

/** @return {!MDCRippleFoundation} */
/**
* @return {!MDCRippleFoundation}
* @override
*/
getDefaultFoundation() {
return new MDCRippleFoundation(MDCRipple.createAdapter(this));
}

/** @override */
initialSyncWithDOM() {
this.unbounded = 'mdcRippleIsUnbounded' in this.root_.dataset;
}
Expand Down

0 comments on commit d5b95ab

Please sign in to comment.