Skip to content

Commit fd7493e

Browse files
committed
fix (+each) handle NULL models
1 parent dbc4c76 commit fd7493e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maskjs",
3-
"version": "0.72.46",
3+
"version": "0.72.47",
44
"homepage": "https://github.com/atmajs/MaskJS",
55
"authors": [
66
"Alex Kit <[email protected]>"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "maskjs",
33
"description": "Template / Markup / HMVC Engine",
4-
"version": "0.72.46",
4+
"version": "0.72.47",
55
"homepage": "http://atmajs.com/mask",
66
"contributors": [
77
{

projects/mask-binding/src/statements/loop/each.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const EachStatement = class_create(ALoopBindedStatement, {
9999
// METHODS
100100

101101
function build(nodes, array, ctx, container, ctr, elements?) {
102-
let imax = array.length;
102+
let imax = array?.length ?? 0;
103103
for(let i = 0; i < imax; i++) {
104104
let node = createEachNode(nodes, i);
105105
builder_build(node, array[i], ctx, container, ctr, elements);

0 commit comments

Comments
 (0)