Comparing version
@@ -58,2 +58,3 @@ import { containerMark } from './constants.js'; | ||
targetContainer = this.root; | ||
Container.scoped = targetContainer; | ||
break; | ||
@@ -85,4 +86,7 @@ } | ||
const targetContainer = this.resolveTargetContainer(token); | ||
const processTransitPath = token.scope === 'container' || | ||
token.scope === 'scoped' || | ||
token.scope === 'singleton'; | ||
let transitPathIndex; | ||
if (token.scope === 'container') { | ||
if (processTransitPath) { | ||
transitPathIndex = Container.transitPath.push(targetContainer) - 1; | ||
@@ -120,3 +124,3 @@ } | ||
} | ||
if (token.scope === 'container' && typeof transitPathIndex === 'number') { | ||
if (processTransitPath && typeof transitPathIndex === 'number') { | ||
Container.transitPath.splice(transitPathIndex, 1); | ||
@@ -123,0 +127,0 @@ } |
{ | ||
"name": "mobidic", | ||
"version": "0.0.53", | ||
"version": "0.0.54", | ||
"keywords": [], | ||
@@ -5,0 +5,0 @@ "author": "js2me", |
Sorry, the diff of this file is not supported yet
47444
0.38%874
0.46%