diff --git a/lib/core/Manager.js b/lib/core/Manager.js index 370a127e..08e92eb9 100644 --- a/lib/core/Manager.js +++ b/lib/core/Manager.js @@ -29,6 +29,7 @@ Manager.prototype.configure = function (setup) { // Targets this._targets = setup.targets || []; this._targets.forEach(function (decEndpoint) { + decEndpoint.initialName = decEndpoint.name; decEndpoint.dependants = mout.object.values(decEndpoint.dependants); targetsHash[decEndpoint.name] = true; }); @@ -264,8 +265,7 @@ Manager.prototype._onFetchSuccess = function (decEndpoint, canonicalDir, pkgMeta var resolved; var index; var incompatibles; - var initialName = decEndpoint.name; - var fetching = this._fetching[initialName]; + var fetching = this._fetching[decEndpoint.initialName]; // Remove from being fetched list mout.array.remove(fetching, decEndpoint);