j-templates 7.0.83 → 7.0.84

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.
@@ -349,10 +349,9 @@ function DestroyAllScopes(scopes) {
349
349
  function DestroyScope(scope) {
350
350
  if (!scope || scope.type === "static")
351
351
  return;
352
- // Emitter.Destroy(scope.emitter);
352
+ emitter_1.Emitter.Clear(scope.emitter);
353
353
  for (const key in scope.calcScopes)
354
354
  DestroyScope(scope.calcScopes[key]);
355
- scope.calcScopes = null;
356
355
  for (let x = 0; x < scope.emitters.length; x++)
357
356
  emitter_1.Emitter.Remove(scope.emitters[x], scope.setCallback);
358
357
  scope.value = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.83",
3
+ "version": "7.0.84",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",