Skip to content

Commit 5357d64

Browse files
committed
Update types.
1 parent f78b051 commit 5357d64

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

externs/closure-types.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ Polymer_PropertiesChanged.prototype._shouldPropertyChange = function(property, v
105105
* @param {string} name Name of attribute that changed
106106
* @param {?string} old Old attribute value
107107
* @param {?string} value New attribute value
108+
* @param {?string} namespace Attribute namespace.
108109
* @return {void}
109110
*/
110-
Polymer_PropertiesChanged.prototype.attributeChangedCallback = function(name, old, value){};
111+
Polymer_PropertiesChanged.prototype.attributeChangedCallback = function(name, old, value, namespace){};
111112
/**
112113
* @param {string} attribute Name of attribute to deserialize.
113114
* @param {?string} value of the attribute.
@@ -972,9 +973,10 @@ Polymer_LegacyElementMixin.prototype._initializeProperties = function(){};
972973
* @param {string} name Name of attribute.
973974
* @param {?string} old Old value of attribute.
974975
* @param {?string} value Current value of attribute.
976+
* @param {?string} namespace Attribute namespace.
975977
* @return {void}
976978
*/
977-
Polymer_LegacyElementMixin.prototype.attributeChangedCallback = function(name, old, value){};
979+
Polymer_LegacyElementMixin.prototype.attributeChangedCallback = function(name, old, value, namespace){};
978980
/**
979981
* @override
980982
* @return {void}
@@ -1391,7 +1393,7 @@ Polymer_DisableUpgradeMixin.prototype._enableProperties = function(){};
13911393
/**
13921394
* @override
13931395
*/
1394-
Polymer_DisableUpgradeMixin.prototype.attributeChangedCallback = function(name, old, value){};
1396+
Polymer_DisableUpgradeMixin.prototype.attributeChangedCallback = function(name, old, value, namespace){};
13951397
/**
13961398
* @override
13971399
*/

types/lib/elements/dom-module.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ declare namespace Polymer {
6363
* @param name Name of attribute.
6464
* @param old Old value of attribute.
6565
* @param value Current value of attribute.
66+
* @param namespace Attribute namespace.
6667
*/
67-
attributeChangedCallback(name: string, old: string|null, value: string|null): void;
68+
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void;
6869

6970
/**
7071
* Registers the dom-module at a given id. This method should only be called

types/lib/legacy/legacy-element-mixin.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ declare namespace Polymer {
6363
* @param name Name of attribute.
6464
* @param old Old value of attribute.
6565
* @param value Current value of attribute.
66+
* @param namespace Attribute namespace.
6667
*/
67-
attributeChangedCallback(name: string, old: string|null, value: string|null): void;
68+
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void;
6869

6970
/**
7071
* Provides an implementation of `connectedCallback`

types/lib/mixins/disable-upgrade-mixin.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare namespace Polymer {
4242
interface DisableUpgradeMixin {
4343
_initializeProperties(): void;
4444
_enableProperties(): void;
45-
attributeChangedCallback(name: any, old: any, value: any): void;
45+
attributeChangedCallback(name: any, old: any, value: any, namespace: any): void;
4646
connectedCallback(): void;
4747
disconnectedCallback(): void;
4848
}

types/lib/mixins/properties-changed.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ declare namespace Polymer {
235235
* @param name Name of attribute that changed
236236
* @param old Old attribute value
237237
* @param value New attribute value
238+
* @param namespace Attribute namespace.
238239
*/
239-
attributeChangedCallback(name: string, old: string|null, value: string|null): void;
240+
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void;
240241

241242
/**
242243
* Deserializes an attribute to its associated property.

0 commit comments

Comments
 (0)