j-templates 7.0.67 → 7.0.68

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.
@@ -25,11 +25,11 @@ export declare class Component<D = void, T = void, E = {}> {
25
25
  /**
26
26
  * Internal scoped Observable for component state.
27
27
  */
28
- protected get Scope(): IObservableScope<D | Promise<D>>;
28
+ protected get Scope(): IObservableScope<D>;
29
29
  /**
30
30
  * Current data value from the scoped Observable.
31
31
  */
32
- protected get Data(): D | Promise<D>;
32
+ protected get Data(): D;
33
33
  /**
34
34
  * Accessor for the component's virtual node.
35
35
  */
@@ -117,9 +117,9 @@ function ExecuteScope(scope) {
117
117
  const state = WatchFunction(scope.getFunction, scope.calcScopes);
118
118
  UpdateEmitters(scope, state.emitters, !!state.emitterIds);
119
119
  const calcScopes = state.currentCalc;
120
+ scope.calcScopes = state.nextCalc;
120
121
  for (const key in calcScopes)
121
122
  DestroyScope(calcScopes[key]);
122
- scope.calcScopes = state.nextCalc;
123
123
  if (scope.async)
124
124
  state.value.then(function (result) {
125
125
  scope.value = result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.67",
3
+ "version": "7.0.68",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",