j-templates 7.0.3 → 7.0.4

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 +12 -1
  2. package/package.json +1 -1
package/Node/vNode.js CHANGED
@@ -213,7 +213,18 @@ function WrapDynamicChildren(dataScope, nodeList, injector, children) {
213
213
  else {
214
214
  const childrenScope = Store_1.ObservableScope.Create(function () {
215
215
  const childNodes = injector_1.Injector.Scope(injector, children, data);
216
- return Array.isArray(childNodes) ? childNodes : [childNodes];
216
+ const nodes = Array.isArray(childNodes) ? childNodes : [childNodes];
217
+ for (let x = 0; x < nodes.length; x++) {
218
+ if (typeof nodes[x] === 'string')
219
+ nodes[x] = vNode.Create({
220
+ type: 'text',
221
+ namespace: null,
222
+ props: {
223
+ nodeValue: nodes[x]
224
+ }
225
+ });
226
+ }
227
+ return nodes;
217
228
  });
218
229
  list_1.List.Add(nextNodeList, {
219
230
  data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",