@vaadin/lit-renderer 23.1.0-rc1 → 23.1.0-rc2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/lit-renderer",
3
- "version": "23.1.0-rc1",
3
+ "version": "23.1.0-rc2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,5 +32,5 @@
32
32
  "dependencies": {
33
33
  "lit": "^2.0.0"
34
34
  },
35
- "gitHead": "5ecb85e16e938df827fefca4bd2a665a1e29913e"
35
+ "gitHead": "154c6782c42145fed21e443559fbe2d781ad3ec7"
36
36
  }
@@ -11,14 +11,14 @@ import { PartType } from 'lit/directive.js';
11
11
  const VALUE_NOT_INITIALIZED = Symbol('valueNotInitialized');
12
12
 
13
13
  export class LitRendererDirective extends AsyncDirective {
14
- /** @protected */
15
- previousValue = VALUE_NOT_INITIALIZED;
16
-
17
14
  constructor(part) {
18
15
  super(part);
16
+
19
17
  if (part.type !== PartType.ELEMENT) {
20
18
  throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);
21
19
  }
20
+
21
+ this.previousValue = VALUE_NOT_INITIALIZED;
22
22
  }
23
23
 
24
24
  /** @override */