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/01/26 07:27:52 UTC

cordova-paramedic git commit: CB-12393 Fixed --browserify argument configuration

Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 872b9d7b3 -> 6991af657


CB-12393 Fixed --browserify argument configuration


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/6991af65
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/6991af65
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/6991af65

Branch: refs/heads/master
Commit: 6991af65703ea100cf6de18f851e532ef98ea0f8
Parents: 872b9d7
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Thu Jan 26 10:27:27 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Thu Jan 26 10:27:27 2017 +0300

----------------------------------------------------------------------
 lib/ParamedicConfig.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/6991af65/lib/ParamedicConfig.js
----------------------------------------------------------------------
diff --git a/lib/ParamedicConfig.js b/lib/ParamedicConfig.js
index 009068e..d8a05b9 100644
--- a/lib/ParamedicConfig.js
+++ b/lib/ParamedicConfig.js
@@ -217,14 +217,14 @@ ParamedicConfig.prototype.setSkipAppiumTests = function (skipAppiumTests) {
 };
 
 ParamedicConfig.prototype.isBrowserify = function () {
-    return this.args.indexOf(BROWSERIFY_ARG) >= 0;
+    return this._config.args.indexOf(BROWSERIFY_ARG) >= 0;
 }
 
 ParamedicConfig.prototype.setBrowserify = function (browserify) {
     if (browserify) {
-        this.args += BROWSERIFY_ARG;
+        this._config.args = BROWSERIFY_ARG + this._config.args;
     } else {
-        this.args = this.args.replace(BROWSERIFY_ARG, '');
+        this._config.args = this._config.args.replace(BROWSERIFY_ARG, '');
     }
 }
 


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