mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Align signatures of attributeChangedCallback
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user