cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/3] cordova-lib git commit: CB-8288 Don't set config.setAutoPersist() in cordova.create
Date Fri, 09 Jan 2015 20:54:04 GMT
CB-8288 Don't set config.setAutoPersist() in cordova.create


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

Branch: refs/heads/master
Commit: e14fd53a28c40634c7bedd93dae3ed338e25caa7
Parents: eba4f32
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jan 9 15:44:08 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jan 9 15:47:43 2015 -0500

----------------------------------------------------------------------
 cordova-lib/src/cordova/config.js | 4 ++++
 cordova-lib/src/cordova/create.js | 2 ++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/e14fd53a/cordova-lib/src/cordova/config.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/config.js b/cordova-lib/src/cordova/config.js
index 0ab3f18..6860715 100644
--- a/cordova-lib/src/cordova/config.js
+++ b/cordova-lib/src/cordova/config.js
@@ -43,6 +43,10 @@ function config(project_root, opts) {
     return json;
 }
 
+config.getAutoPersist = function() {
+    return autoPersist;
+};
+
 config.setAutoPersist = function(value) {
     autoPersist = value;
 };

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/e14fd53a/cordova-lib/src/cordova/create.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/create.js b/cordova-lib/src/cordova/create.js
index 262cc2f..3964d26 100644
--- a/cordova-lib/src/cordova/create.js
+++ b/cordova-lib/src/cordova/create.js
@@ -93,8 +93,10 @@ function create(dir, id, name, cfg) {
     }
 
     // Read / Write .cordova/config.json file if necessary.
+    var origAutoPersist = config.getAutoPersist();
     config.setAutoPersist(false);
     var config_json = config(dir, cfg);
+    config.setAutoPersist(origAutoPersist);
 
     var p;
     var symlink = false; // Whether to symlink the www dir instead of copying.


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


Mime
View raw message