Mercurial > pub > ImplabJs
diff src/implab/di/Container.js @ 4:fcc63f34d0a2
fixed container configuration when the config path contains only a package name
author | cin |
---|---|
date | Thu, 08 Jun 2017 15:15:24 +0300 |
parents | 00779cb63b12 |
children |
line wrap: on
line diff
--- a/src/implab/di/Container.js Tue Jun 06 19:45:32 2017 +0300 +++ b/src/implab/di/Container.js Thu Jun 08 15:15:24 2017 +0300 @@ -110,7 +110,7 @@ if (typeof (config) === "string") { p = new Deferred(); if (!contextRequire) { - var shim = config + "-" + Uuid(); + var shim = [config, new Uuid()].join(config.indexOf("/") != -1 ? "-" : "/"); define(shim, ["require", config], function (ctx, data) { p.resolve([data, { contextRequire: ctx