@vaadin/component-base 24.6.0-beta1 → 24.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/define.js +1 -1
- package/src/polylit-mixin.js +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "24.6.0
|
|
3
|
+
"version": "24.6.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vaadin/chai-plugins": "24.6.0
|
|
41
|
+
"@vaadin/chai-plugins": "~24.6.0",
|
|
42
42
|
"@vaadin/testing-helpers": "^1.0.0",
|
|
43
43
|
"sinon": "^18.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c0b38aa981494d04fac64da35aa3890ad72551ea"
|
|
46
46
|
}
|
package/src/define.js
CHANGED
|
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
|
|
|
13
13
|
|
|
14
14
|
const experimentalMap = {};
|
|
15
15
|
|
|
16
|
-
export function defineCustomElement(CustomElement, version = '24.6.0
|
|
16
|
+
export function defineCustomElement(CustomElement, version = '24.6.0') {
|
|
17
17
|
Object.defineProperty(CustomElement, 'version', {
|
|
18
18
|
get() {
|
|
19
19
|
return version;
|
package/src/polylit-mixin.js
CHANGED
|
@@ -213,18 +213,21 @@ const PolylitMixinImplementation = (superclass) => {
|
|
|
213
213
|
|
|
214
214
|
/** @protected */
|
|
215
215
|
updated(props) {
|
|
216
|
+
const wasReadyInvoked = this.__isReadyInvoked;
|
|
217
|
+
this.__isReadyInvoked = true;
|
|
218
|
+
|
|
216
219
|
if (this.constructor.__observers) {
|
|
217
220
|
this.__runObservers(props, this.constructor.__observers);
|
|
218
221
|
}
|
|
219
222
|
|
|
220
|
-
if (this.__dynamicPropertyObservers) {
|
|
221
|
-
this.__runDynamicObservers(props, this.__dynamicPropertyObservers);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
223
|
if (this.constructor.__complexObservers) {
|
|
225
224
|
this.__runComplexObservers(props, this.constructor.__complexObservers);
|
|
226
225
|
}
|
|
227
226
|
|
|
227
|
+
if (this.__dynamicPropertyObservers) {
|
|
228
|
+
this.__runDynamicObservers(props, this.__dynamicPropertyObservers);
|
|
229
|
+
}
|
|
230
|
+
|
|
228
231
|
if (this.__dynamicMethodObservers) {
|
|
229
232
|
this.__runComplexObservers(props, this.__dynamicMethodObservers);
|
|
230
233
|
}
|
|
@@ -233,8 +236,7 @@ const PolylitMixinImplementation = (superclass) => {
|
|
|
233
236
|
this.__runNotifyProps(props, this.constructor.__notifyProps);
|
|
234
237
|
}
|
|
235
238
|
|
|
236
|
-
if (!
|
|
237
|
-
this.__isReadyInvoked = true;
|
|
239
|
+
if (!wasReadyInvoked) {
|
|
238
240
|
this.ready();
|
|
239
241
|
}
|
|
240
242
|
}
|