j-templates 7.0.19 → 7.0.20

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 -2
  2. package/package.json +1 -1
package/Node/vNode.js CHANGED
@@ -119,7 +119,7 @@ function InitNode(vnode) {
119
119
  Store_1.ObservableScope.Watch(componentScope, CreateScheduledCallback(function () {
120
120
  if (vnode.destroyed)
121
121
  return;
122
- const nodes = Store_1.ObservableScope.Peek(componentScope);
122
+ const nodes = injector_1.Injector.Scope(vnode.injector, Store_1.ObservableScope.Peek, componentScope);
123
123
  vNode.DestroyAll(vnode.children);
124
124
  vnode.children = nodes;
125
125
  UpdateChildren(vnode);
@@ -146,7 +146,7 @@ function StaticChildren(vnode, children) {
146
146
  const child = Store_1.ObservableScope.Peek(childrenScope);
147
147
  switch (typeof child) {
148
148
  case 'string': {
149
- const node = vNode.Create({
149
+ const node = injector_1.Injector.Scope(vnode.injector, vNode.Create, {
150
150
  type: "text",
151
151
  namespace: null,
152
152
  props() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.19",
3
+ "version": "7.0.20",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",