j-templates 8.0.1 → 8.0.3

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.
@@ -333,7 +333,7 @@ var ObservableNode;
333
333
  function Update(value, prop = OBJECT_SCOPE) {
334
334
  const wrapper = wrapperCache.get(value);
335
335
  if (wrapper) {
336
- const scope = wrapper[prop] ?? wrapper[OBJECT_SCOPE];
336
+ const scope = Array.isArray(wrapper) ? wrapper[OBJECT_SCOPE] : wrapper[prop] ?? wrapper[OBJECT_SCOPE];
337
337
  observableScope_1.ObservableScope.Update(scope);
338
338
  }
339
339
  }
@@ -846,7 +846,7 @@ function WatchDecorator(target, propertyKey, descriptor, scopeFunction) {
846
846
  return scopeFunction(instance);
847
847
  }
848
848
  const scope = observableScope_1.ObservableScope.Gated(scopeFunctionWrapper);
849
- const propertyMap = GetScopeMapForInstance(this);
849
+ const propertyMap = GetScopeMapForInstance(instance);
850
850
  propertyMap[propertyKey] = [scope, undefined];
851
851
  observableScope_1.ObservableScope.Watch(scope, function (scope) {
852
852
  instance[propertyKey](observableScope_1.ObservableScope.Value(scope));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",