Skip to content

Commit

Permalink
closure fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jul 26, 2019
1 parent 1125663 commit 2bb488c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions lib/mixins/disable-upgrade-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export const DisableUpgradeMixin = dedupingMixin((base) => {
*/
class DisableUpgradeClass extends superClass {

constructor() {
super();
/** @type {boolean|undefined} */
this.__isUpgradeDisabled;
}

static get observedAttributes() {
return observedAttributesGetter.call(this).concat(DISABLED_ATTR);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,12 @@ export const ElementMixin = dedupingMixin(base => {
}

/**
* Determines if a property dfeault can be applied. For example, this
* prevents a default from being applied when a property that has no
* accessor is overridden by its host before upgrade (e.g. via a binding).
* @param {string} property Name of the property
* @returns {boolean} Returns true if the property default can be applied.
*/
// A property default can be overridden when a `properties` property with
// default but no effects had a property set (e.g. bound) by its host
// before upgrade.
_canApplyPropertyDefault(property) {
return !this.hasOwnProperty(property);
}
Expand Down

0 comments on commit 2bb488c

Please sign in to comment.