# HG changeset patch # User cin # Date 2021-04-13 14:44:11 # Node ID c446ccde5f9f70a31a8e9ef669842294a1bbca0c # Parent 38bbb0dbe4f540cd9812805c161b8093adb6420f Don't call .remove() method of objects bound to the container diff --git a/src/main/ts/di/LifetimeManager.ts b/src/main/ts/di/LifetimeManager.ts --- a/src/main/ts/di/LifetimeManager.ts +++ b/src/main/ts/di/LifetimeManager.ts @@ -100,8 +100,6 @@ export class LifetimeManager implements self._cleanup.push(() => cleanup(item)); } else if (isDestroyable(item)) { self._cleanup.push(() => item.destroy()); - } else if (isRemovable(item)) { - self._cleanup.push(() => item.remove()); } } };