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

formatting
author cin
date Tue, 06 Jun 2017 19:45:32 +0300
parents fc2517695ee1
children f750c89976d3
comparison
equal deleted inserted replaced
2:7d7059d2a810 3:00779cb63b12
58 }, 58 },
59 59
60 clone: function () { 60 clone: function () {
61 return new Context( 61 return new Context(
62 this.container, 62 this.container,
63 safe.create(this._services), 63 Object.create(this._services),
64 this._cache, 64 this._cache,
65 this._visited 65 this._visited
66 ); 66 );
67 67
68 }, 68 },
121 name: name, 121 name: name,
122 service: d, 122 service: d,
123 scope: this._services 123 scope: this._services
124 }); 124 });
125 if (localize) 125 if (localize)
126 this._services = safe.create(this._services); 126 this._services = Object.create(this._services);
127 }, 127 },
128 128
129 leave: function () { 129 leave: function () {
130 var ctx = this._stack.pop(); 130 var ctx = this._stack.pop();
131 this._services = ctx.scope; 131 this._services = ctx.scope;