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

formatting
author cin
date Tue, 06 Jun 2017 19:45:32 +0300
parents 93fb6c09f2e1
children
comparison
equal deleted inserted replaced
2:7d7059d2a810 3:00779cb63b12
216 this._factory = function () { 216 this._factory = function () {
217 return new ctor(); 217 return new ctor();
218 }; 218 };
219 } else if (this._params instanceof Array) { 219 } else if (this._params instanceof Array) {
220 this._factory = function () { 220 this._factory = function () {
221 var inst = safe.create(ctor.prototype); 221 var inst = Object.create(ctor.prototype);
222 var ret = ctor.apply(inst, arguments); 222 var ret = ctor.apply(inst, arguments);
223 return typeof (ret) === "object" ? ret : inst; 223 return typeof (ret) === "object" ? ret : inst;
224 }; 224 };
225 } else { 225 } else {
226 this._factory = function (param) { 226 this._factory = function (param) {