@lightningjs/blits 0.3.5 → 0.3.7

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.
@@ -31,6 +31,6 @@
31
31
  "vite": "^4.0.4"
32
32
  },
33
33
  "dependencies": {
34
- "@lightningjs/blits": "^0.3.5"
34
+ "@lightningjs/blits": "^0.3.7"
35
35
  }
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.cjs",
6
6
  "exports": {
package/src/element.js CHANGED
@@ -212,8 +212,8 @@ const Element = {
212
212
  get nodeId() {
213
213
  return this.node && this.node.id
214
214
  },
215
- get id() {
216
- return this.initData.id || null
215
+ get ref() {
216
+ return this.initData.ref || null
217
217
  },
218
218
  animate(prop, value) {
219
219
  const props = {}
@@ -37,6 +37,7 @@ const reactiveProxy = (target) => {
37
37
  track(target, key)
38
38
 
39
39
  if (
40
+ target[key] !== null &&
40
41
  typeof target[key] === 'object' &&
41
42
  Object.getPrototypeOf(target[key]) === Object.prototype
42
43
  ) {
@@ -72,6 +73,7 @@ const reactiveDefineProperty = (target) => {
72
73
  let internalValue = target[key]
73
74
 
74
75
  if (
76
+ target[key] !== null &&
75
77
  typeof target[key] === 'object' &&
76
78
  Object.getPrototypeOf(target[key]) === Object.prototype
77
79
  ) {