You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2017/06/28 09:56:32 UTC

cordova-lib git commit: CB-6143: Change plugman.emit() to events.emit()

Repository: cordova-lib
Updated Branches:
  refs/heads/master 552584a0d -> 073f6224f


CB-6143: Change plugman.emit() to events.emit()


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/073f6224
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/073f6224
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/073f6224

Branch: refs/heads/master
Commit: 073f6224fcf10c381c5440bc1cbf91c5db89c301
Parents: 552584a
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Wed Jun 28 10:28:58 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Wed Jun 28 11:50:37 2017 +0300

----------------------------------------------------------------------
 edit-commit-message.-5275319776192581795.tmp | 0
 integration-tests/plugman_uninstall.spec.js  | 3 +--
 src/plugman/browserify.js                    | 3 +--
 3 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/073f6224/edit-commit-message.-5275319776192581795.tmp
----------------------------------------------------------------------
diff --git a/edit-commit-message.-5275319776192581795.tmp b/edit-commit-message.-5275319776192581795.tmp
deleted file mode 100644
index e69de29..0000000

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/073f6224/integration-tests/plugman_uninstall.spec.js
----------------------------------------------------------------------
diff --git a/integration-tests/plugman_uninstall.spec.js b/integration-tests/plugman_uninstall.spec.js
index 6aa6ea9..4755929 100644
--- a/integration-tests/plugman_uninstall.spec.js
+++ b/integration-tests/plugman_uninstall.spec.js
@@ -24,7 +24,6 @@ var uninstall = require('../src/plugman/uninstall'),
     actions = require('cordova-common').ActionStack,
     PluginInfo = require('cordova-common').PluginInfo,
     events = require('cordova-common').events,
-    plugman = require('../src/plugman/plugman'),
     common  = require('../spec/common'),
     platforms = require('../src/platforms/platforms'),
     xmlHelpers = require('cordova-common').xmlHelpers,
@@ -325,7 +324,7 @@ describe('end', function() {
             return uninstall('android', project, plugins['A']);
         }).fin(function(err){
             if(err)
-                plugman.emit('error', err);
+                events.emit('error', err);
             shell.rm('-rf', project, project2, project3);
             done();
         });

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/073f6224/src/plugman/browserify.js
----------------------------------------------------------------------
diff --git a/src/plugman/browserify.js b/src/plugman/browserify.js
index c4c8ff6..450edd1 100644
--- a/src/plugman/browserify.js
+++ b/src/plugman/browserify.js
@@ -25,7 +25,6 @@ var path               = require('path'),
     fs                 = require('fs'),
     childProcess       = require('child_process'),
     events             = require('cordova-common').events,
-    plugman            = require('./plugman'),
     bundle             = require('cordova-js/tasks/lib/bundle-browserify'),
     writeLicenseHeader = require('cordova-js/tasks/lib/write-license-header'),
     Q                  = require('q'),
@@ -48,7 +47,7 @@ function generateFinalBundle(platform, libraryRelease, outReleaseFile, commitId,
 
     outReleaseFileStream.on('finish', function() {
         var newtime = new Date().valueOf() - time;
-        plugman.emit('verbose', 'generated cordova.' + platform + '.js @ ' + commitId + ' in ' + newtime + 'ms');
+        events.emit('verbose', 'generated cordova.' + platform + '.js @ ' + commitId + ' in ' + newtime + 'ms');
         deferred.resolve();
         // TODO clean up all the *.browserify files
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org