cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ger...@apache.org
Subject [2/2] cordova-lib git commit: CB-8482 rename: platformId -> platformName
Date Tue, 24 Feb 2015 03:00:16 GMT
CB-8482 rename: platformId -> platformName


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

Branch: refs/heads/master
Commit: 32863b58d0ec6beae74eee83570929c3a768ba05
Parents: 1229ce6
Author: Omar Mefire <ommenjik@microsoft.com>
Authored: Mon Feb 23 16:09:44 2015 -0800
Committer: Omar Mefire <ommenjik@microsoft.com>
Committed: Mon Feb 23 16:09:44 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/32863b58/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index 1c00d46..a7bd1e4 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -266,11 +266,11 @@ function remove(hooksRunner, projectRoot, targets, opts) {
         var autosave =  config_json.auto_save_platforms || false;
 	if(opts.save || autosave){
 	    targets.forEach(function(target) {
-		var platformId = target.split('@')[0];
+		var platformName = target.split('@')[0];
 		var xml = cordova_util.projectConfig(projectRoot);
 		var cfg = new ConfigParser(xml);
 		events.emit('log', 'Removing ' + target + ' from config.xml file ...');
-		cfg.removeEngine(platformId);
+		cfg.removeEngine(platformName);
 		cfg.write();
 	    });
 	}


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


Mime
View raw message