j-templates 7.0.36 → 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.
- package/Node/vNode.js +2 -3
- 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,8 +169,7 @@ function WrapStaticChildren(vnode, children) {
|
|
|
169
169
|
return CreateNodeArray(childNodes, vnode.children);
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function WrapChildren(injector, children, data, nodeList) {
|
|
173
|
-
const dataIsAsync = (0, functions_1.IsAsync)(data);
|
|
172
|
+
function WrapChildren(injector, children, data, dataIsAsync, nodeList) {
|
|
174
173
|
return function () {
|
|
175
174
|
const nextData = data();
|
|
176
175
|
switch (nextData.length) {
|