From 4064fedf55883d95973d078c0220da7f0e32049d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Cruz?= Date: Thu, 30 May 2013 22:17:38 +0100 Subject: [PATCH] Fix install not resolving with the installed object. --- lib/core/Project.js | 6 ++++-- lib/renderers/StandardRenderer.js | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core/Project.js b/lib/core/Project.js index a72bd11d..8630e049 100644 --- a/lib/core/Project.js +++ b/lib/core/Project.js @@ -72,7 +72,7 @@ Project.prototype.install = function (endpoints, options) { // Bootstrap the process return that._bootstrap(targets, resolved, installed) // Handle save and saveDev options - .then(function () { + .then(function (installed) { var jsonKey; if (!options.save && !options.saveDev) { @@ -89,7 +89,9 @@ Project.prototype.install = function (endpoints, options) { }); return that._saveJson() - .progress(function (notification) { + .then(function () { + return installed; + }, null, function (notification) { return notification; }); }); diff --git a/lib/renderers/StandardRenderer.js b/lib/renderers/StandardRenderer.js index 622f9efd..ac2fcaea 100644 --- a/lib/renderers/StandardRenderer.js +++ b/lib/renderers/StandardRenderer.js @@ -73,7 +73,6 @@ StandardRenderer.prototype.updateAvailable = function (update) { // ------------------------- - StandardRenderer.prototype._genericNotification = function (notification) { var stream; var str;