comparison src/implab/di/Container.js @ 3:00779cb63b12

formatting
author cin
date Tue, 06 Jun 2017 19:45:32 +0300
parents 93fb6c09f2e1
children fcc63f34d0a2
comparison
equal deleted inserted replaced
2:7d7059d2a810 3:00779cb63b12
27 _root: null, 27 _root: null,
28 _parent: null, 28 _parent: null,
29 29
30 constructor: function (parent) { 30 constructor: function (parent) {
31 this._parent = parent; 31 this._parent = parent;
32 this._services = parent ? safe.create(parent._services) : {}; 32 this._services = parent ? Object.create(parent._services) : {};
33 this._cache = {}; 33 this._cache = {};
34 this._cleanup = []; 34 this._cleanup = [];
35 this._root = parent ? parent.getRootContainer() : this; 35 this._root = parent ? parent.getRootContainer() : this;
36 this._services.container = new Value(this, true); 36 this._services.container = new Value(this, true);
37 }, 37 },