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
|
-
|
|
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;
|