cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [42/50] [abbrv] git commit: setting finish event on outputstream
Date Fri, 11 Apr 2014 19:46:58 GMT
setting finish event on outputstream


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/781ec241
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/781ec241
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/781ec241

Branch: refs/heads/browserify
Commit: 781ec24101b3c7f241d160142a300853ea279daa
Parents: b7bf810
Author: Anis Kadri <anis@apache.org>
Authored: Wed Mar 26 17:44:21 2014 +0100
Committer: Anis Kadri <anis@apache.org>
Committed: Fri Apr 11 12:45:01 2014 -0700

----------------------------------------------------------------------
 src/prepare.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/781ec241/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 5510d76..6fe2fe1 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -252,12 +252,12 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir,
www_
 
     releaseBundle.pipe(outReleaseFileStream);
 
-    releaseBundle.on('end', function() {
+    outReleaseFileStream.on('finish', function() {
       var newtime = new Date().valueOf() - time;
       plugman.emit('verbose', 'generated cordova.' + platform + '.js @ ' + commitId + ' in
' + newtime + 'ms');
     });
 
-    releaseBundle.on('error', function(err) {
+    outReleaseFileStream.on('error', function(err) {
       var newtime = new Date().valueOf() - time;
       console.log('error while generating cordova_b.js');
       plugman.emit('verbose', 'error while generating cordova.js');


Mime
View raw message