Comparing version 0.0.39 to 0.0.40
@@ -14,2 +14,3 @@ import { Class, Maybe } from 'yummies/utils/types'; | ||
private static lastTouchedContainer?; | ||
get root(): Container; | ||
constructor(config?: ContainerConfig & { | ||
@@ -16,0 +17,0 @@ parent?: Container; |
@@ -11,2 +11,9 @@ import { containerMark } from './constants.js'; | ||
static lastTouchedContainer; | ||
get root() { | ||
const parent = this.parent; | ||
if (!parent) { | ||
return this; | ||
} | ||
return parent.root; | ||
} | ||
constructor(config) { | ||
@@ -44,3 +51,3 @@ this.parent = config?.parent; | ||
// eslint-disable-next-line @typescript-eslint/no-use-before-define | ||
targetContainer = container; | ||
targetContainer = this.root; | ||
break; | ||
@@ -47,0 +54,0 @@ } |
{ | ||
"name": "mobidic", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"keywords": [], | ||
@@ -5,0 +5,0 @@ "author": "js2me", |
Sorry, the diff of this file is not supported yet
31925
590