j-templates 8.0.1 → 8.0.2
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/Utils/decorators.js +1 -1
- package/package.json +1 -1
package/Utils/decorators.js
CHANGED
|
@@ -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(
|
|
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));
|