@lightningjs/blits 0.9.1 → 0.9.2
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -219,7 +219,7 @@ const generateForLoopCode = function (templateObject, parent) {
|
|
|
219
219
|
|
|
220
220
|
const forCounter = counter
|
|
221
221
|
ctx.renderCode.push(`
|
|
222
|
-
const collection = ${cast(result[2], ':for')}
|
|
222
|
+
const collection = ${cast(result[2], ':for')} || []
|
|
223
223
|
const keys = []
|
|
224
224
|
for(let __index = 0; __index < collection.length; __index++) {
|
|
225
225
|
parent = ${parent}
|
|
@@ -55,8 +55,8 @@ const reactiveProxy = (original, _parent = null, _key) => {
|
|
|
55
55
|
// trigger a change on the parent object and the key
|
|
56
56
|
// i.e. when pushing a new item to `obj.data`, _parent will equal `obj`
|
|
57
57
|
// and _key will equal `data`
|
|
58
|
-
trigger(_parent, _key)
|
|
59
58
|
resumeTracking()
|
|
59
|
+
trigger(_parent, _key)
|
|
60
60
|
return result
|
|
61
61
|
}
|
|
62
62
|
} else {
|