j-templates 7.0.86 → 7.0.87

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.
@@ -422,8 +422,9 @@ function DestroyScope(scope) {
422
422
  emitter_1.Emitter.Clear(scope.emitter);
423
423
  for (const key in scope.scopes)
424
424
  DestroyScope(scope.scopes[key]);
425
- for (let x = 0; x < scope.emitters.length; x++)
426
- emitter_1.Emitter.Remove(scope.emitters[x], scope.setCallback);
425
+ if (scope.emitters !== null)
426
+ for (let x = 0; x < scope.emitters.length; x++)
427
+ emitter_1.Emitter.Remove(scope.emitters[x], scope.setCallback);
427
428
  scope.value = undefined;
428
429
  scope.scopes = null;
429
430
  scope.emitters = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.86",
3
+ "version": "7.0.87",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",