File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ export const DisableUpgradeMixin = dedupingMixin((base) => {
76
76
*/
77
77
class DisableUpgradeClass extends superClass {
78
78
79
+ constructor ( ) {
80
+ super ( ) ;
81
+ /** @type {boolean|undefined } */
82
+ this . __isUpgradeDisabled ;
83
+ }
84
+
79
85
static get observedAttributes ( ) {
80
86
return observedAttributesGetter . call ( this ) . concat ( DISABLED_ATTR ) ;
81
87
}
Original file line number Diff line number Diff line change @@ -578,12 +578,12 @@ export const ElementMixin = dedupingMixin(base => {
578
578
}
579
579
580
580
/**
581
+ * Determines if a property dfeault can be applied. For example, this
582
+ * prevents a default from being applied when a property that has no
583
+ * accessor is overridden by its host before upgrade (e.g. via a binding).
581
584
* @param {string } property Name of the property
582
585
* @returns {boolean } Returns true if the property default can be applied.
583
586
*/
584
- // A property default can be overridden when a `properties` property with
585
- // default but no effects had a property set (e.g. bound) by its host
586
- // before upgrade.
587
587
_canApplyPropertyDefault ( property ) {
588
588
return ! this . hasOwnProperty ( property ) ;
589
589
}
You can’t perform that action at this time.
0 commit comments