j-templates 7.0.35 → 7.0.36

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.
Files changed (2) hide show
  1. package/Node/vNode.js +2 -0
  2. package/package.json +1 -1
package/Node/vNode.js CHANGED
@@ -170,6 +170,7 @@ function WrapStaticChildren(vnode, children) {
170
170
  };
171
171
  }
172
172
  function WrapChildren(injector, children, data, nodeList) {
173
+ const dataIsAsync = (0, functions_1.IsAsync)(data);
173
174
  return function () {
174
175
  const nextData = data();
175
176
  switch (nextData.length) {
@@ -197,6 +198,7 @@ function WrapChildren(injector, children, data, nodeList) {
197
198
  const childNodes = injector_1.Injector.Scope(injector, children, data);
198
199
  return CreateNodeArray(childNodes);
199
200
  });
201
+ childrenScope.async = dataIsAsync;
200
202
  list_1.List.Add(nextNodeList, {
201
203
  data,
202
204
  nodes: Store_1.ObservableScope.Value(childrenScope),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.35",
3
+ "version": "7.0.36",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",