Skip to content

Commit

Permalink
Align signatures of attributeChangedCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed May 30, 2019
1 parent 3dd189c commit 4cc6c33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/elements/dom-bind.js
Expand Up @@ -64,9 +64,13 @@ export class DomBind extends domBindBase {

/**
* @override
* @param {string} name Name of attribute that changed
* @param {?string} old Old attribute value
* @param {?string} value New attribute value
* @param {?string} namespace Attribute namespace.
* @return {void}
*/
attributeChangedCallback() {
attributeChangedCallback(name, old, value, namespace) {
// assumes only one observed attribute
this.mutableData = true;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/mixins/disable-upgrade-mixin.js
Expand Up @@ -67,8 +67,8 @@ export const DisableUpgradeMixin = dedupingMixin((base) => {
* @param {string} name Attribute name.
* @param {?string} old The previous value for the attribute.
* @param {?string} value The new value for the attribute.
* @param {?string=} namespace The XML namespace for the attribute.
* @return {undefined}
* @param {?string} namespace The XML namespace for the attribute.
* @return {void}
*/
attributeChangedCallback(name, old, value, namespace) {
if (name == DISABLED_ATTR) {
Expand Down
2 changes: 1 addition & 1 deletion lib/mixins/properties-changed.js
Expand Up @@ -426,7 +426,7 @@ export const PropertiesChanged = dedupingMixin(
* @param {string} name Name of attribute that changed
* @param {?string} old Old attribute value
* @param {?string} value New attribute value
* @param {?string=} namespace Attribute namespace.
* @param {?string} namespace Attribute namespace.
* @return {void}
* @suppress {missingProperties} Super may or may not implement the callback
* @override
Expand Down

0 comments on commit 4cc6c33

Please sign in to comment.