j-templates 7.0.26 → 7.0.27

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 +5 -2
  2. package/package.json +1 -1
package/Node/vNode.js CHANGED
@@ -201,7 +201,7 @@ function DynamicChildren(vnode, children, data) {
201
201
  vnode.children = Store_1.ObservableScope.Value(childrenScope);
202
202
  }
203
203
  function WrapDynamicChildren(dataScope, nodeList, injector, children) {
204
- return function () {
204
+ const func = function () {
205
205
  const nextData = Store_1.ObservableScope.Value(dataScope);
206
206
  const nodeMap = list_1.List.ToNodeMap(nodeList, function (data) {
207
207
  return data.data;
@@ -257,6 +257,7 @@ function WrapDynamicChildren(dataScope, nodeList, injector, children) {
257
257
  list_1.List.Append(nodeList, nextNodeList);
258
258
  return nextNodeArray;
259
259
  };
260
+ return func;
260
261
  }
261
262
  function UpdateChildren(vnode, init = false, skipInit = false) {
262
263
  if (!vnode.children)
@@ -289,7 +290,7 @@ function UpdateChildren(vnode, init = false, skipInit = false) {
289
290
  });
290
291
  }
291
292
  function ToArray(callback) {
292
- return function (...args) {
293
+ const func = function (...args) {
293
294
  const result = callback(...args);
294
295
  if (Array.isArray(result))
295
296
  return result;
@@ -297,6 +298,8 @@ function ToArray(callback) {
297
298
  return [];
298
299
  return [result];
299
300
  };
301
+ func[Symbol.toStringTag] = callback[Symbol.toStringTag];
302
+ return func;
300
303
  }
301
304
  function ScheduledAssignment(assign) {
302
305
  let scheduled = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.26",
3
+ "version": "7.0.27",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",