Skip to content

Commit 0541b21

Browse files
committed
Wrap other hasOwnProperty checks in JSCompiler_renameProperty.
1 parent 9e90fd2 commit 0541b21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mixins/properties-changed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const PropertiesChanged = dedupingMixin(
113113
*/
114114
_createPropertyAccessor(property, readOnly) {
115115
this._addPropertyToAttributeMap(property);
116-
if (!this.hasOwnProperty('__dataHasAccessor')) {
116+
if (!this.hasOwnProperty(JSCompiler_renameProperty('__dataHasAccessor', this))) {
117117
this.__dataHasAccessor = Object.assign({}, this.__dataHasAccessor);
118118
}
119119
if (!this.__dataHasAccessor[property]) {
@@ -131,7 +131,7 @@ export const PropertiesChanged = dedupingMixin(
131131
* @override
132132
*/
133133
_addPropertyToAttributeMap(property) {
134-
if (!this.hasOwnProperty('__dataAttributes')) {
134+
if (!this.hasOwnProperty(JSCompiler_renameProperty('__dataAttributes', this))) {
135135
this.__dataAttributes = Object.assign({}, this.__dataAttributes);
136136
}
137137
if (!this.__dataAttributes[property]) {

lib/mixins/properties-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const PropertiesMixin = dedupingMixin(superClass => {
119119
* @nocollapse
120120
*/
121121
static get observedAttributes() {
122-
if (!this.hasOwnProperty('__observedAttributes')) {
122+
if (!this.hasOwnProperty(JSCompiler_renameProperty('__observedAttributes', this))) {
123123
register(this.prototype);
124124
const props = this._properties;
125125
this.__observedAttributes = props ? Object.keys(props).map(p => this.attributeNameForProperty(p)) : [];

0 commit comments

Comments
 (0)