j-templates 7.0.35 → 7.0.37

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 +3 -2
  2. package/package.json +1 -1
package/Node/vNode.js CHANGED
@@ -155,7 +155,7 @@ function CreateChildrenScope(vnode, children, data) {
155
155
  return Store_1.ObservableScope.Create(WrapStaticChildren(vnode, children));
156
156
  const dataIsAsync = (0, functions_1.IsAsync)(data);
157
157
  const nodeList = list_1.List.Create();
158
- const scope = Store_1.ObservableScope.Create(WrapChildren(vnode.injector, children, ToArray(data), nodeList));
158
+ const scope = Store_1.ObservableScope.Create(WrapChildren(vnode.injector, children, ToArray(data), dataIsAsync, nodeList));
159
159
  scope.async = dataIsAsync;
160
160
  Store_1.ObservableScope.OnDestroyed(scope, function () {
161
161
  DestroyNodeList(nodeList);
@@ -169,7 +169,7 @@ function WrapStaticChildren(vnode, children) {
169
169
  return CreateNodeArray(childNodes, vnode.children);
170
170
  };
171
171
  }
172
- function WrapChildren(injector, children, data, nodeList) {
172
+ function WrapChildren(injector, children, data, dataIsAsync, nodeList) {
173
173
  return function () {
174
174
  const nextData = data();
175
175
  switch (nextData.length) {
@@ -197,6 +197,7 @@ function WrapChildren(injector, children, data, nodeList) {
197
197
  const childNodes = injector_1.Injector.Scope(injector, children, data);
198
198
  return CreateNodeArray(childNodes);
199
199
  });
200
+ childrenScope.async = dataIsAsync;
200
201
  list_1.List.Add(nextNodeList, {
201
202
  data,
202
203
  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.37",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",